home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1993…ch: Other People's Memory / ADC Developer CD (1993-03) (''Other People's Memory'')_iso / Dev.CD Mar 93.iso / Development Platforms / CSMP Digests / csmp-v1-196.txt < prev    next >
BinHex  |  1992-11-18  |  42.0 KB  |  [TEXT/MPS ]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: BinHex (archive/binHex).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert BinHex (archive/binHex) magic Supported
1% dexvert Swift 3D 3D Graphic (poly/swift3D3DGraphic) ext Unsupported
1% dexvert Boost Text serialization (other/boostTextSerialization) ext Unsupported
1% dexvert Text File (text/txt) fallback Supported
100% file ASCII text, with CR line terminators default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried x-fmt/111 Plain Text File default
100% lsar BinHex default
100% gt2 Textdatei (Mac) default
100% detectItEasy Format: Plain text[CR] default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPS ]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 43 2e 53 2e 4d 2e 50 2e | 20 44 69 67 65 73 74 20 |C.S.M.P.| Digest |
|00000010| 20 20 20 20 20 20 20 20 | 20 20 20 20 54 68 75 2c | | Thu,|
|00000020| 20 32 32 20 4f 63 74 20 | 39 32 20 20 20 20 20 20 | 22 Oct |92 |
|00000030| 20 56 6f 6c 75 6d 65 20 | 31 20 3a 20 49 73 73 75 | Volume |1 : Issu|
|00000040| 65 20 31 39 36 0d 0d 54 | 6f 64 61 79 27 73 20 54 |e 196..T|oday's T|
|00000050| 6f 70 69 63 73 3a 0d 0d | 09 46 72 65 65 20 43 6f |opics:..|.Free Co|
|00000060| 64 65 3a 20 20 57 61 74 | 63 68 20 43 75 72 73 6f |de: Wat|ch Curso|
|00000070| 72 73 0d 09 4d 6f 72 65 | 20 66 72 65 65 20 63 6f |rs..More| free co|
|00000080| 64 65 3a 20 20 53 69 6d | 70 6c 69 66 79 69 6e 67 |de: Sim|plifying|
|00000090| 20 74 68 65 20 4c 69 73 | 74 20 4d 61 6e 61 67 65 | the Lis|t Manage|
|000000a0| 72 0d 09 4e 65 65 64 20 | 73 61 6d 70 6c 65 20 63 |r..Need |sample c|
|000000b0| 6f 64 65 20 6f 66 20 4d | 50 57 20 74 6f 6f 6c 20 |ode of M|PW tool |
|000000c0| 75 73 69 6e 67 20 41 70 | 70 6c 65 20 45 76 65 6e |using Ap|ple Even|
|000000d0| 74 73 0d 09 57 68 61 74 | 20 69 73 20 74 68 65 20 |ts..What| is the |
|000000e0| 62 61 6e 64 77 69 64 74 | 68 20 6f 66 20 61 20 43 |bandwidt|h of a C|
|000000f0| 61 62 6c 65 54 56 20 63 | 68 61 6e 6e 65 6c 3f 0d |ableTV c|hannel?.|
|00000100| 09 50 61 69 6e 74 42 65 | 68 69 6e 64 20 28 77 61 |.PaintBe|hind (wa|
|00000110| 73 20 52 65 3a 20 4e 4f | 4e 2d 51 55 49 43 4b 44 |s Re: NO|N-QUICKD|
|00000120| 52 41 57 20 47 41 4d 45 | 53 29 0d 09 4c 69 73 74 |RAW GAME|S)..List|
|00000130| 20 66 69 65 6c 64 73 2e | 2e 2e 0d 09 43 6f 6c 6f | fields.|....Colo|
|00000140| 72 20 49 63 6f 6e 73 0d | 0d 0d 0d 54 68 65 20 43 |r Icons.|...The C|
|00000150| 6f 6d 70 2e 53 79 73 2e | 4d 61 63 2e 50 72 6f 67 |omp.Sys.|Mac.Prog|
|00000160| 72 61 6d 6d 65 72 20 44 | 69 67 65 73 74 20 69 73 |rammer D|igest is|
|00000170| 20 6d 6f 64 65 72 61 74 | 65 64 20 62 79 20 4d 69 | moderat|ed by Mi|
|00000180| 63 68 61 65 6c 20 41 2e | 20 4b 65 6c 6c 79 2e 0d |chael A.| Kelly..|
|00000190| 0d 54 68 65 20 64 69 67 | 65 73 74 20 69 73 20 61 |.The dig|est is a|
|000001a0| 20 63 6f 6c 6c 65 63 74 | 69 6f 6e 20 6f 66 20 61 | collect|ion of a|
|000001b0| 72 74 69 63 6c 65 20 74 | 68 72 65 61 64 73 20 66 |rticle t|hreads f|
|000001c0| 72 6f 6d 20 74 68 65 20 | 69 6e 74 65 72 6e 65 74 |rom the |internet|
|000001d0| 20 6e 65 77 73 67 72 6f | 75 70 0d 63 6f 6d 70 2e | newsgro|up.comp.|
|000001e0| 73 79 73 2e 6d 61 63 2e | 70 72 6f 67 72 61 6d 6d |sys.mac.|programm|
|000001f0| 65 72 2e 20 20 49 74 20 | 69 73 20 64 65 73 69 67 |er. It |is desig|
|00000200| 6e 65 64 20 66 6f 72 20 | 70 65 6f 70 6c 65 20 77 |ned for |people w|
|00000210| 68 6f 20 72 65 61 64 20 | 63 2e 73 2e 6d 2e 70 2e |ho read |c.s.m.p.|
|00000220| 20 73 65 6d 69 2d 0d 72 | 65 67 75 6c 61 72 6c 79 | semi-.r|egularly|
|00000230| 20 61 6e 64 20 77 61 6e | 74 20 61 6e 20 61 72 63 | and wan|t an arc|
|00000240| 68 69 76 65 20 6f 66 20 | 74 68 65 20 64 69 73 63 |hive of |the disc|
|00000250| 75 73 73 69 6f 6e 73 2e | 20 20 49 66 20 79 6f 75 |ussions.| If you|
|00000260| 20 64 6f 6e 27 74 20 6b | 6e 6f 77 20 77 68 61 74 | don't k|now what|
|00000270| 20 61 0d 6e 65 77 73 67 | 72 6f 75 70 20 69 73 2c | a.newsg|roup is,|
|00000280| 20 79 6f 75 20 70 72 6f | 62 61 62 6c 79 20 64 6f | you pro|bably do|
|00000290| 6e 27 74 20 68 61 76 65 | 20 61 63 63 65 73 73 20 |n't have| access |
|000002a0| 74 6f 20 69 74 2e 20 20 | 41 73 6b 20 79 6f 75 72 |to it. |Ask your|
|000002b0| 20 73 79 73 74 65 6d 73 | 0d 61 64 6d 69 6e 69 73 | systems|.adminis|
|000002c0| 74 72 61 74 6f 72 28 73 | 29 20 66 6f 72 20 64 65 |trator(s|) for de|
|000002d0| 74 61 69 6c 73 2e 20 20 | 28 54 68 69 73 20 6d 65 |tails. |(This me|
|000002e0| 61 6e 73 20 79 6f 75 20 | 63 61 6e 27 74 20 70 6f |ans you |can't po|
|000002f0| 73 74 20 71 75 65 73 74 | 69 6f 6e 73 20 74 6f 20 |st quest|ions to |
|00000300| 74 68 65 0d 64 69 67 65 | 73 74 2e 29 0d 0d 45 61 |the.dige|st.)..Ea|
|00000310| 63 68 20 69 73 73 75 65 | 20 6f 66 20 74 68 65 20 |ch issue| of the |
|00000320| 64 69 67 65 73 74 20 63 | 6f 6e 74 61 69 6e 73 20 |digest c|ontains |
|00000330| 6f 6e 65 20 6f 72 20 6d | 6f 72 65 20 73 65 74 73 |one or m|ore sets|
|00000340| 20 6f 66 20 61 72 74 69 | 63 6c 65 73 20 28 63 61 | of arti|cles (ca|
|00000350| 6c 6c 65 64 0d 74 68 72 | 65 61 64 73 29 2c 20 77 |lled.thr|eads), w|
|00000360| 69 74 68 20 65 61 63 68 | 20 73 65 74 20 63 6f 72 |ith each| set cor|
|00000370| 72 65 73 70 6f 6e 64 69 | 6e 67 20 74 6f 20 61 20 |respondi|ng to a |
|00000380| 27 64 69 73 63 75 73 73 | 69 6f 6e 27 20 6f 66 20 |'discuss|ion' of |
|00000390| 61 20 70 61 72 74 69 63 | 75 6c 61 72 0d 73 75 62 |a partic|ular.sub|
|000003a0| 6a 65 63 74 2e 20 20 54 | 68 65 20 61 72 74 69 63 |ject. T|he artic|
|000003b0| 6c 65 73 20 61 72 65 20 | 6e 6f 74 20 65 64 69 74 |les are |not edit|
|000003c0| 65 64 3b 20 61 6c 6c 20 | 61 72 74 69 63 6c 65 73 |ed; all |articles|
|000003d0| 20 69 6e 63 6c 75 64 65 | 64 20 69 6e 20 74 68 69 | include|d in thi|
|000003e0| 73 20 64 69 67 65 73 74 | 0d 61 72 65 20 69 6e 20 |s digest|.are in |
|000003f0| 74 68 65 69 72 20 6f 72 | 69 67 69 6e 61 6c 20 70 |their or|iginal p|
|00000400| 6f 73 74 65 64 20 66 6f | 72 6d 20 28 61 73 20 72 |osted fo|rm (as r|
|00000410| 65 63 65 69 76 65 64 20 | 62 79 20 6f 75 72 20 6e |eceived |by our n|
|00000420| 65 77 73 20 73 65 72 76 | 65 72 20 61 74 0d 63 73 |ews serv|er at.cs|
|00000430| 2e 75 6f 72 65 67 6f 6e | 2e 65 64 75 29 2e 20 20 |.uoregon|.edu). |
|00000440| 41 72 74 69 63 6c 65 20 | 74 68 72 65 61 64 73 20 |Article |threads |
|00000450| 61 72 65 20 6e 6f 74 20 | 61 64 64 65 64 20 74 6f |are not |added to|
|00000460| 20 74 68 65 20 64 69 67 | 65 73 74 20 75 6e 74 69 | the dig|est unti|
|00000470| 6c 20 74 68 65 20 6c 61 | 73 74 0d 61 72 74 69 63 |l the la|st.artic|
|00000480| 6c 65 20 61 64 64 65 64 | 20 74 6f 20 74 68 65 20 |le added| to the |
|00000490| 74 68 72 65 61 64 20 69 | 73 20 61 74 20 6c 65 61 |thread i|s at lea|
|000004a0| 73 74 20 6f 6e 65 20 6d | 6f 6e 74 68 20 6f 6c 64 |st one m|onth old|
|000004b0| 20 28 74 68 69 73 20 69 | 73 20 74 6f 20 65 6e 73 | (this i|s to ens|
|000004c0| 75 72 65 20 74 68 61 74 | 0d 74 68 65 20 74 68 72 |ure that|.the thr|
|000004d0| 65 61 64 20 69 73 20 64 | 65 61 64 20 62 65 66 6f |ead is d|ead befo|
|000004e0| 72 65 20 61 64 64 69 6e | 67 20 69 74 20 74 6f 20 |re addin|g it to |
|000004f0| 74 68 65 20 64 69 67 65 | 73 74 29 2e 20 20 41 72 |the dige|st). Ar|
|00000500| 74 69 63 6c 65 20 74 68 | 72 65 61 64 73 20 74 68 |ticle th|reads th|
|00000510| 61 74 0d 63 6f 6e 73 69 | 73 74 20 6f 66 20 6f 6e |at.consi|st of on|
|00000520| 6c 79 20 6f 6e 65 20 6d | 65 73 73 61 67 65 20 61 |ly one m|essage a|
|00000530| 72 65 20 67 65 6e 65 72 | 61 6c 6c 79 20 6e 6f 74 |re gener|ally not|
|00000540| 20 69 6e 63 6c 75 64 65 | 64 20 69 6e 20 74 68 65 | include|d in the|
|00000550| 20 64 69 67 65 73 74 2e | 0d 0d 54 68 65 20 65 6e | digest.|..The en|
|00000560| 74 69 72 65 20 64 69 67 | 65 73 74 20 69 73 20 61 |tire dig|est is a|
|00000570| 76 61 69 6c 61 62 6c 65 | 20 66 6f 72 20 61 6e 6f |vailable| for ano|
|00000580| 6e 79 6d 6f 75 73 20 66 | 74 70 20 66 72 6f 6d 20 |nymous f|tp from |
|00000590| 66 74 70 2e 63 73 2e 75 | 6f 72 65 67 6f 6e 2e 65 |ftp.cs.u|oregon.e|
|000005a0| 64 75 0d 5b 31 32 38 2e | 32 32 33 2e 38 2e 38 5d |du.[128.|223.8.8]|
|000005b0| 20 69 6e 20 74 68 65 20 | 64 69 72 65 63 74 6f 72 | in the |director|
|000005c0| 79 20 2f 70 75 62 2f 6d | 61 63 2f 63 73 6d 70 2d |y /pub/m|ac/csmp-|
|000005d0| 64 69 67 65 73 74 2e 20 | 20 42 65 20 73 75 72 65 |digest. | Be sure|
|000005e0| 20 74 6f 20 72 65 61 64 | 20 74 68 65 0d 66 69 6c | to read| the.fil|
|000005f0| 65 20 2f 70 75 62 2f 6d | 61 63 2f 63 73 6d 70 2d |e /pub/m|ac/csmp-|
|00000600| 64 69 67 65 73 74 2f 52 | 45 41 44 4d 45 20 62 65 |digest/R|EADME be|
|00000610| 66 6f 72 65 20 64 6f 77 | 6e 6c 6f 61 64 69 6e 67 |fore dow|nloading|
|00000620| 20 61 6e 79 20 66 69 6c | 65 73 2e 20 20 54 68 65 | any fil|es. The|
|00000630| 20 6d 6f 73 74 0d 72 65 | 63 65 6e 74 20 69 73 73 | most.re|cent iss|
|00000640| 75 65 73 20 61 72 65 20 | 61 76 61 69 6c 61 62 6c |ues are |availabl|
|00000650| 65 20 66 72 6f 6d 20 73 | 75 6d 65 78 2d 61 69 6d |e from s|umex-aim|
|00000660| 2e 73 74 61 6e 66 6f 72 | 64 2e 65 64 75 20 5b 33 |.stanfor|d.edu [3|
|00000670| 36 2e 34 34 2e 30 2e 36 | 5d 20 69 6e 20 74 68 65 |6.44.0.6|] in the|
|00000680| 0d 64 69 72 65 63 74 6f | 72 79 20 2f 69 6e 66 6f |.directo|ry /info|
|00000690| 2d 6d 61 63 2f 64 69 67 | 65 73 74 2f 63 73 6d 70 |-mac/dig|est/csmp|
|000006a0| 2e 20 20 49 66 20 79 6f | 75 20 64 6f 6e 27 74 20 |. If yo|u don't |
|000006b0| 68 61 76 65 20 66 74 70 | 20 63 61 70 61 62 69 6c |have ftp| capabil|
|000006c0| 69 74 79 2c 20 74 68 65 | 20 73 75 6d 65 78 0d 61 |ity, the| sumex.a|
|000006d0| 72 63 68 69 76 65 20 68 | 61 73 20 61 20 6d 61 69 |rchive h|as a mai|
|000006e0| 6c 20 73 65 72 76 65 72 | 3b 20 73 65 6e 64 20 61 |l server|; send a|
|000006f0| 20 6d 65 73 73 61 67 65 | 20 77 69 74 68 20 74 68 | message| with th|
|00000700| 65 20 74 65 78 74 20 27 | 24 4d 41 43 61 72 63 68 |e text '|$MACarch|
|00000710| 20 68 65 6c 70 27 20 28 | 6e 6f 0d 71 75 6f 74 65 | help' (|no.quote|
|00000720| 73 29 20 74 6f 20 4c 49 | 53 54 53 45 52 56 40 72 |s) to LI|STSERV@r|
|00000730| 69 63 65 76 6d 31 2e 72 | 69 63 65 2e 65 64 75 20 |icevm1.r|ice.edu |
|00000740| 66 6f 72 20 6d 6f 72 65 | 20 69 6e 66 6f 72 6d 61 |for more| informa|
|00000750| 74 69 6f 6e 2e 0d 0d 54 | 68 65 20 64 69 67 65 73 |tion...T|he diges|
|00000760| 74 20 69 73 20 61 6c 73 | 6f 20 61 76 61 69 6c 61 |t is als|o availa|
|00000770| 62 6c 65 20 76 69 61 20 | 65 6d 61 69 6c 2e 20 20 |ble via |email. |
|00000780| 4a 75 73 74 20 73 65 6e | 64 20 61 20 6e 6f 74 65 |Just sen|d a note|
|00000790| 20 73 61 79 69 6e 67 20 | 74 68 61 74 20 79 6f 75 | saying |that you|
|000007a0| 0d 77 61 6e 74 20 74 6f | 20 62 65 20 6f 6e 20 74 |.want to| be on t|
|000007b0| 68 65 20 64 69 67 65 73 | 74 20 6d 61 69 6c 69 6e |he diges|t mailin|
|000007c0| 67 20 6c 69 73 74 20 74 | 6f 20 6d 6b 65 6c 6c 79 |g list t|o mkelly|
|000007d0| 40 63 73 2e 75 6f 72 65 | 67 6f 6e 2e 65 64 75 2c |@cs.uore|gon.edu,|
|000007e0| 20 61 6e 64 20 79 6f 75 | 20 77 69 6c 6c 0d 61 75 | and you| will.au|
|000007f0| 74 6f 6d 61 74 69 63 61 | 6c 6c 79 20 72 65 63 65 |tomatica|lly rece|
|00000800| 69 76 65 20 65 61 63 68 | 20 6e 65 77 20 69 73 73 |ive each| new iss|
|00000810| 75 65 20 61 73 20 69 74 | 20 69 73 20 63 72 65 61 |ue as it| is crea|
|00000820| 74 65 64 2e 20 20 53 6f | 72 72 79 2c 20 62 61 63 |ted. So|rry, bac|
|00000830| 6b 20 69 73 73 75 65 73 | 0d 61 72 65 20 6e 6f 74 |k issues|.are not|
|00000840| 20 61 76 61 69 6c 61 62 | 6c 65 20 74 68 72 6f 75 | availab|le throu|
|00000850| 67 68 20 74 68 65 20 6d | 61 69 6c 69 6e 67 20 6c |gh the m|ailing l|
|00000860| 69 73 74 2e 0d 0d 53 65 | 6e 64 20 61 64 6d 69 6e |ist...Se|nd admin|
|00000870| 69 73 74 72 61 74 69 76 | 65 20 6d 61 69 6c 20 74 |istrativ|e mail t|
|00000880| 6f 20 6d 6b 65 6c 6c 79 | 40 63 73 2e 75 6f 72 65 |o mkelly|@cs.uore|
|00000890| 67 6f 6e 2e 65 64 75 2e | 0d 0d 0d 2d 2d 2d 2d 2d |gon.edu.|...-----|
|000008a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000008b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000008c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000008d0| 2d 2d 0d 0d 46 72 6f 6d | 3a 20 6b 75 72 69 73 75 |--..From|: kurisu|
|000008e0| 74 6f 40 42 41 43 48 2e | 55 44 45 4c 2e 45 44 55 |to@BACH.|UDEL.EDU|
|000008f0| 20 28 22 53 65 61 6e 20 | 4a 2e 20 43 72 69 73 74 | ("Sean |J. Crist|
|00000900| 22 29 0d 53 75 62 6a 65 | 63 74 3a 20 46 72 65 65 |").Subje|ct: Free|
|00000910| 20 43 6f 64 65 3a 20 20 | 57 61 74 63 68 20 43 75 | Code: |Watch Cu|
|00000920| 72 73 6f 72 73 0d 44 61 | 74 65 3a 20 31 38 20 53 |rsors.Da|te: 18 S|
|00000930| 65 70 20 39 32 20 30 32 | 3a 33 30 3a 30 31 20 47 |ep 92 02|:30:01 G|
|00000940| 4d 54 0d 0d 0d 20 20 20 | 20 20 54 68 65 20 66 6f |MT... | The fo|
|00000950| 6c 6c 6f 77 69 6e 67 20 | 66 72 65 65 20 63 6f 64 |llowing |free cod|
|00000960| 65 20 69 73 20 6e 6f 74 | 68 69 6e 67 20 70 61 72 |e is not|hing par|
|00000970| 74 69 63 75 6c 61 72 6c | 79 20 63 6f 6d 70 6c 69 |ticularl|y compli|
|00000980| 63 61 74 65 64 20 6f 72 | 0d 75 6e 75 73 75 61 6c |cated or|.unusual|
|00000990| 3b 20 69 74 20 73 69 6d | 70 6c 79 20 68 61 6e 64 |; it sim|ply hand|
|000009a0| 6c 65 73 20 74 68 65 20 | 77 6f 72 6b 20 69 6e 76 |les the |work inv|
|000009b0| 6f 6c 76 65 64 20 69 6e | 20 73 68 6f 77 69 6e 67 |olved in| showing|
|000009c0| 20 77 61 74 63 68 20 63 | 75 72 73 6f 72 73 2c 0d | watch c|ursors,.|
|000009d0| 65 69 74 68 65 72 20 77 | 69 74 68 20 73 70 69 6e |either w|ith spin|
|000009e0| 6e 69 6e 67 20 6f 72 20 | 6e 6f 6e 2d 73 70 69 6e |ning or |non-spin|
|000009f0| 6e 69 6e 67 20 68 61 6e | 64 73 2e 20 20 49 27 6d |ning han|ds. I'm|
|00000a00| 20 70 6f 73 74 69 6e 67 | 20 69 74 20 68 65 72 65 | posting| it here|
|00000a10| 20 62 65 63 61 75 73 65 | 0d 69 74 20 6d 61 79 20 | because|.it may |
|00000a20| 62 65 20 68 65 6c 70 66 | 75 6c 20 74 6f 20 6e 65 |be helpf|ul to ne|
|00000a30| 77 20 70 72 6f 67 72 61 | 6d 6d 65 72 73 2c 20 6f |w progra|mmers, o|
|00000a40| 72 0d 62 65 63 61 75 73 | 65 20 69 74 20 6d 69 67 |r.becaus|e it mig|
|00000a50| 68 74 20 73 61 76 65 20 | 73 6f 6d 65 6f 6e 65 20 |ht save |someone |
|00000a60| 65 6c 73 65 20 74 68 65 | 20 74 69 6d 65 20 6f 66 |else the| time of|
|00000a70| 20 77 72 69 74 69 6e 67 | 20 69 74 20 6f 76 65 72 | writing| it over|
|00000a80| 20 61 67 61 69 6e 2e 0d | 20 20 20 20 20 54 68 69 | again..| Thi|
|00000a90| 73 20 63 6f 64 65 20 77 | 61 73 20 77 72 69 74 74 |s code w|as writt|
|00000aa0| 65 6e 20 69 6e 20 54 68 | 69 6e 6b 20 50 61 73 63 |en in Th|ink Pasc|
|00000ab0| 61 6c 20 34 2e 30 2e 0d | 0d 48 6f 77 20 74 6f 20 |al 4.0..|.How to |
|00000ac0| 75 73 65 20 74 68 69 73 | 20 63 6f 64 65 3a 0d 31 |use this| code:.1|
|00000ad0| 2e 20 20 55 73 65 20 52 | 65 73 45 64 69 74 20 74 |. Use R|esEdit t|
|00000ae0| 6f 20 63 6f 70 79 20 74 | 68 65 20 73 65 76 65 6e |o copy t|he seven|
|00000af0| 20 43 55 52 53 20 72 65 | 73 6f 75 72 63 65 73 20 | CURS re|sources |
|00000b00| 66 72 6f 6d 20 74 68 65 | 20 46 69 6e 64 65 72 20 |from the| Finder |
|00000b10| 69 6e 74 6f 20 79 6f 75 | 72 0d 61 70 70 6c 69 63 |into you|r.applic|
|00000b20| 61 74 69 6f 6e 27 73 20 | 72 65 73 6f 75 72 63 65 |ation's |resource|
|00000b30| 20 66 69 6c 65 2e 20 20 | 49 20 6c 69 66 74 65 64 | file. |I lifted|
|00000b40| 20 6d 69 6e 65 20 66 72 | 6f 6d 20 36 2e 31 2e 35 | mine fr|om 6.1.5|
|00000b50| 20 77 68 65 72 65 20 74 | 68 65 79 20 77 65 72 65 | where t|hey were|
|00000b60| 0d 6e 75 6d 62 65 72 65 | 64 20 62 65 67 69 6e 6e |.numbere|d beginn|
|00000b70| 69 6e 67 20 61 74 20 32 | 35 37 2e 20 20 49 27 6d |ing at 2|57. I'm|
|00000b80| 20 6e 6f 74 20 73 75 72 | 65 20 77 68 65 74 68 65 | not sur|e whethe|
|00000b90| 72 20 6f 72 20 6e 6f 74 | 20 74 68 65 73 65 20 72 |r or not| these r|
|00000ba0| 65 73 6f 75 72 63 65 0d | 6e 75 6d 62 65 72 73 20 |esource.|numbers |
|00000bb0| 61 72 65 20 74 68 65 20 | 73 61 6d 65 20 75 6e 64 |are the |same und|
|00000bc0| 65 72 20 61 6c 6c 0d 76 | 65 72 73 69 6f 6e 73 20 |er all.v|ersions |
|00000bd0| 6f 66 20 74 68 65 20 46 | 69 6e 64 65 72 3b 20 69 |of the F|inder; i|
|00000be0| 66 20 79 6f 75 72 73 20 | 61 72 65 20 64 69 66 66 |f yours |are diff|
|00000bf0| 65 72 65 6e 74 2c 20 79 | 6f 75 20 77 69 6c 6c 20 |erent, y|ou will |
|00000c00| 68 61 76 65 20 74 6f 20 | 65 69 74 68 65 72 0d 63 |have to |either.c|
|00000c10| 68 61 6e 67 65 20 74 68 | 65 20 72 65 73 6f 75 72 |hange th|e resour|
|00000c20| 63 65 20 6e 75 6d 62 65 | 72 73 20 6f 72 20 74 68 |ce numbe|rs or th|
|00000c30| 65 20 63 6f 64 65 20 62 | 65 6c 6f 77 2e 0d 20 20 |e code b|elow.. |
|00000c40| 20 20 20 41 6c 73 6f 2c | 20 49 20 64 6f 6e 27 74 | Also,| I don't|
|00000c50| 20 6b 6e 6f 77 20 68 6f | 77 20 41 70 70 6c 65 20 | know ho|w Apple |
|00000c60| 66 65 65 6c 73 20 61 62 | 6f 75 74 20 70 65 6f 70 |feels ab|out peop|
|00000c70| 6c 65 20 73 74 65 61 6c | 69 6e 67 20 74 68 65 69 |le steal|ing thei|
|00000c80| 72 0d 63 75 72 73 6f 72 | 73 2e 20 20 48 6f 77 65 |r.cursor|s. Howe|
|00000c90| 76 65 72 2c 20 73 69 6e | 63 65 20 74 68 65 73 65 |ver, sin|ce these|
|00000ca0| 20 73 65 76 65 6e 20 43 | 55 52 53 20 72 65 73 6f | seven C|URS reso|
|00000cb0| 75 72 63 65 73 20 61 72 | 65 20 61 20 73 74 61 6e |urces ar|e a stan|
|00000cc0| 64 61 72 64 20 70 61 72 | 74 20 6f 66 0d 74 68 65 |dard par|t of.the|
|00000cd0| 20 75 73 65 72 20 69 6e | 74 65 72 66 61 63 65 2c | user in|terface,|
|00000ce0| 20 61 6e 64 20 73 69 6e | 63 65 20 74 68 65 79 20 | and sin|ce they |
|00000cf0| 61 72 65 20 61 20 6d 69 | 6e 6f 72 20 70 61 72 74 |are a mi|nor part|
|00000d00| 20 6f 66 20 74 68 65 20 | 46 69 6e 64 65 72 2c 20 | of the |Finder, |
|00000d10| 49 20 64 6f 75 62 74 0d | 74 68 61 74 20 41 70 70 |I doubt.|that App|
|00000d20| 6c 65 20 69 73 20 67 6f | 69 6e 67 20 74 6f 20 73 |le is go|ing to s|
|00000d30| 75 65 20 79 6f 75 20 66 | 6f 72 0d 75 73 69 6e 67 |ue you f|or.using|
|00000d40| 20 74 68 65 6d 2e 0d 0d | 32 2e 20 20 49 6e 63 6c | them...|2. Incl|
|00000d50| 75 64 65 20 74 68 65 20 | 67 6c 6f 62 61 6c 20 76 |ude the |global v|
|00000d60| 61 72 69 61 62 6c 65 73 | 20 69 6e 20 74 68 65 20 |ariables| in the |
|00000d70| 63 6f 64 65 20 62 65 6c | 6f 77 20 69 6e 20 79 6f |code bel|ow in yo|
|00000d80| 75 72 20 70 72 6f 67 72 | 61 6d 27 73 0d 67 6c 6f |ur progr|am's.glo|
|00000d90| 62 61 6c 20 64 65 63 6c | 61 72 61 74 69 6f 6e 73 |bal decl|arations|
|00000da0| 2e 0d 0d 33 2e 20 20 57 | 68 65 6e 20 79 6f 75 72 |...3. W|hen your|
|00000db0| 20 70 72 6f 67 72 61 6d | 20 69 6e 69 74 69 61 6c | program| initial|
|00000dc0| 69 7a 65 73 20 69 74 73 | 65 6c 66 20 6f 6e 20 73 |izes its|elf on s|
|00000dd0| 74 61 72 74 75 70 2c 20 | 69 74 20 73 68 6f 75 6c |tartup, |it shoul|
|00000de0| 64 20 63 61 6c 6c 0d 49 | 6e 69 74 57 61 74 63 68 |d call.I|nitWatch|
|00000df0| 20 6f 6e 63 65 2e 20 20 | 41 6c 74 65 72 6e 61 74 | once. |Alternat|
|00000e00| 65 6c 79 2c 20 79 6f 75 | 20 63 6f 75 6c 64 20 65 |ely, you| could e|
|00000e10| 6c 69 6d 69 6e 61 74 65 | 20 74 68 69 73 20 72 6f |liminate| this ro|
|00000e20| 75 74 69 6e 65 20 61 6e | 64 20 70 61 73 74 65 0d |utine an|d paste.|
|00000e30| 69 74 73 20 6f 6e 65 20 | 6c 69 6e 65 20 6f 66 20 |its one |line of |
|00000e40| 63 6f 64 65 20 69 6e 74 | 6f 20 79 6f 75 72 20 6f |code int|o your o|
|00000e50| 77 6e 20 69 6e 69 74 69 | 61 6c 69 7a 65 20 72 6f |wn initi|alize ro|
|00000e60| 75 74 69 6e 65 2e 0d 0d | 34 2e 20 20 54 6f 20 73 |utine...|4. To s|
|00000e70| 68 6f 77 20 61 20 73 69 | 6d 70 6c 65 20 73 74 69 |how a si|mple sti|
|00000e80| 6c 6c 20 77 61 74 63 68 | 2c 20 63 61 6c 6c 20 53 |ll watch|, call S|
|00000e90| 68 6f 77 57 61 74 63 68 | 2e 20 20 54 68 69 73 20 |howWatch|. This |
|00000ea0| 72 6f 75 74 69 6e 65 20 | 69 73 0d 66 75 6e 63 74 |routine |is.funct|
|00000eb0| 69 6f 6e 61 6c 6c 79 20 | 65 71 75 69 76 61 6c 65 |ionally |equivale|
|00000ec0| 6e 74 20 74 6f 20 49 6e | 69 74 43 75 72 73 6f 72 |nt to In|itCursor|
|00000ed0| 2e 0d 0d 35 2e 20 20 54 | 6f 20 6d 61 6b 65 20 74 |...5. T|o make t|
|00000ee0| 68 65 20 68 61 6e 64 73 | 20 6f 66 20 74 68 65 20 |he hands| of the |
|00000ef0| 77 61 74 63 68 20 61 63 | 74 75 61 6c 6c 79 20 73 |watch ac|tually s|
|00000f00| 70 69 6e 2c 20 64 6f 6e | 27 74 20 63 61 6c 6c 20 |pin, don|'t call |
|00000f10| 53 68 6f 77 57 61 74 63 | 68 2e 20 0d 49 6e 73 74 |ShowWatc|h. .Inst|
|00000f20| 65 61 64 2c 20 73 74 61 | 72 74 20 74 68 65 20 77 |ead, sta|rt the w|
|00000f30| 61 74 63 68 20 73 70 69 | 6e 6e 69 6e 67 20 62 79 |atch spi|nning by|
|00000f40| 20 63 61 6c 6c 69 6e 67 | 20 53 74 61 72 74 53 70 | calling| StartSp|
|00000f50| 69 6e 6e 69 6e 67 57 61 | 74 63 68 2e 20 20 57 68 |inningWa|tch. Wh|
|00000f60| 69 6c 65 0d 79 6f 75 20 | 61 72 65 20 64 6f 69 6e |ile.you |are doin|
|00000f70| 67 20 79 6f 75 72 20 74 | 69 6d 65 2d 63 6f 6e 73 |g your t|ime-cons|
|00000f80| 75 6d 69 6e 67 20 70 72 | 6f 63 65 73 73 69 6e 67 |uming pr|ocessing|
|00000f90| 2c 20 63 61 6c 6c 20 53 | 70 69 6e 57 61 74 63 68 |, call S|pinWatch|
|00000fa0| 20 61 73 20 6f 66 74 65 | 6e 20 61 73 0d 70 6f 73 | as ofte|n as.pos|
|00000fb0| 73 69 62 6c 65 20 28 70 | 65 72 68 61 70 73 20 62 |sible (p|erhaps b|
|00000fc0| 79 20 69 6e 63 6c 75 64 | 69 6e 67 20 69 74 20 69 |y includ|ing it i|
|00000fd0| 6e 0d 73 6f 6d 65 20 69 | 6e 6e 65 72 20 70 72 6f |n.some i|nner pro|
|00000fe0| 63 65 73 73 69 6e 67 20 | 6c 6f 6f 70 29 2e 20 20 |cessing |loop). |
|00000ff0| 53 70 69 6e 57 61 74 63 | 68 20 74 61 6b 65 73 20 |SpinWatc|h takes |
|00001000| 63 61 72 65 20 6f 66 20 | 74 68 65 20 74 69 6d 69 |care of |the timi|
|00001010| 6e 67 20 69 6e 76 6f 6c | 76 65 64 0d 69 6e 20 73 |ng invol|ved.in s|
|00001020| 70 69 6e 6e 69 6e 67 20 | 74 68 65 20 77 61 74 63 |pinning |the watc|
|00001030| 68 20 68 61 6e 64 73 3b | 20 61 6c 6c 20 79 6f 75 |h hands;| all you|
|00001040| 20 68 61 76 65 20 74 6f | 20 64 6f 20 69 73 20 63 | have to| do is c|
|00001050| 61 6c 6c 20 69 74 20 61 | 73 20 6f 66 74 65 6e 20 |all it a|s often |
|00001060| 61 73 0d 70 6f 73 73 69 | 62 6c 65 2e 0d 0d 36 2e |as.possi|ble...6.|
|00001070| 20 20 57 68 65 6e 20 79 | 6f 75 20 61 72 65 20 66 | When y|ou are f|
|00001080| 69 6e 69 73 68 65 64 20 | 73 70 69 6e 6e 69 6e 67 |inished |spinning|
|00001090| 20 74 68 65 20 77 61 74 | 63 68 20 68 61 6e 64 73 | the wat|ch hands|
|000010a0| 2c 20 62 65 20 73 75 72 | 65 20 74 6f 20 63 61 6c |, be sur|e to cal|
|000010b0| 6c 0d 53 74 6f 70 53 70 | 69 6e 6e 69 6e 67 57 61 |l.StopSp|inningWa|
|000010c0| 74 63 68 2e 20 20 54 68 | 69 73 20 64 65 61 6c 6c |tch. Th|is deall|
|000010d0| 6f 63 61 74 65 73 20 74 | 68 65 20 6d 65 6d 6f 72 |ocates t|he memor|
|000010e0| 79 20 61 73 73 6f 63 69 | 61 74 65 64 20 77 69 74 |y associ|ated wit|
|000010f0| 68 20 74 68 65 20 77 61 | 74 63 68 0d 63 75 72 73 |h the wa|tch.curs|
|00001100| 6f 72 73 2e 0d 0d 37 2e | 20 20 54 68 69 73 20 63 |ors...7.| This c|
|00001110| 6f 64 65 20 73 70 69 6e | 73 20 74 68 65 20 77 61 |ode spin|s the wa|
|00001120| 74 63 68 20 68 61 6e 64 | 6c 65 20 65 76 65 72 79 |tch hand|le every|
|00001130| 20 33 30 20 74 69 63 6b | 73 20 28 6f 6e 63 65 20 | 30 tick|s (once |
|00001140| 65 76 65 72 79 20 68 61 | 6c 66 0d 73 65 63 6f 6e |every ha|lf.secon|
|00001150| 64 29 2e 20 20 54 6f 20 | 63 68 61 6e 67 65 20 74 |d). To |change t|
|00001160| 68 69 73 20 73 70 65 65 | 64 2c 20 65 64 69 74 20 |his spee|d, edit |
|00001170| 74 68 65 20 66 69 67 75 | 72 65 20 33 30 20 69 6e |the figu|re 30 in|
|00001180| 20 74 68 65 20 53 70 69 | 6e 57 61 74 63 68 0d 72 | the Spi|nWatch.r|
|00001190| 6f 75 74 69 6e 65 2e 20 | 20 28 49 20 64 6f 6e 27 |outine. | (I don'|
|000011a0| 74 20 6b 6e 6f 77 20 77 | 68 65 74 68 65 72 20 41 |t know w|hether A|
|000011b0| 70 70 6c 65 20 68 61 73 | 20 65 73 74 61 62 6c 69 |pple has| establi|
|000011c0| 73 68 65 64 20 61 6e 79 | 20 67 75 69 64 65 6c 69 |shed any| guideli|
|000011d0| 6e 65 20 66 6f 72 0d 68 | 6f 77 20 6f 66 74 65 6e |ne for.h|ow often|
|000011e0| 20 61 20 63 75 72 73 6f | 72 20 73 68 6f 75 6c 64 | a curso|r should|
|000011f0| 20 73 70 69 6e 2e 29 0d | 0d 50 6c 65 61 73 65 20 | spin.).|.Please |
|00001200| 73 65 6e 64 20 62 75 67 | 20 72 65 70 6f 72 74 73 |send bug| reports|
|00001210| 2c 20 70 72 61 69 73 65 | 2c 20 65 74 63 2e 20 74 |, praise|, etc. t|
|00001220| 6f 20 6b 75 72 69 73 75 | 74 6f 40 62 61 63 68 2e |o kurisu|to@bach.|
|00001230| 75 64 65 6c 2e 65 64 75 | 2e 20 20 49 20 68 6f 70 |udel.edu|. I hop|
|00001240| 65 0d 74 68 69 73 20 63 | 6f 64 65 20 69 73 20 75 |e.this c|ode is u|
|00001250| 73 65 66 75 6c 20 74 6f | 20 73 6f 6d 65 62 6f 64 |seful to| somebod|
|00001260| 79 2e 0d 0d 75 6e 69 74 | 20 53 70 69 6e 6e 69 6e |y...unit| Spinnin|
|00001270| 67 57 61 74 63 68 3b 0d | 0d 69 6e 74 65 72 66 61 |gWatch;.|.interfa|
|00001280| 63 65 0d 0d 7b 47 6c 6f | 62 61 6c 20 76 61 72 69 |ce..{Glo|bal vari|
|00001290| 61 62 6c 65 73 7d 0d 20 | 76 61 72 0d 20 20 67 57 |ables}. |var. gW|
|000012a0| 61 74 63 68 48 61 6e 64 | 6c 65 3a 20 43 75 72 73 |atchHand|le: Curs|
|000012b0| 48 61 6e 64 6c 65 3b 0d | 20 20 67 53 70 69 6e 6e |Handle;.| gSpinn|
|000012c0| 69 6e 67 57 61 74 63 68 | 48 61 6e 64 6c 65 3a 20 |ingWatch|Handle: |
|000012d0| 61 72 72 61 79 5b 31 2e | 2e 38 5d 20 6f 66 20 43 |array[1.|.8] of C|
|000012e0| 75 72 73 48 61 6e 64 6c | 65 3b 0d 20 20 67 53 70 |ursHandl|e;. gSp|
|000012f0| 69 6e 6e 69 6e 67 57 61 | 74 63 68 54 69 6d 65 72 |inningWa|tchTimer|
|00001300| 3a 20 4c 6f 6e 67 49 6e | 74 3b 0d 20 20 67 53 70 |: LongIn|t;. gSp|
|00001310| 69 6e 6e 69 6e 67 57 61 | 74 63 68 53 74 61 74 65 |inningWa|tchState|
|00001320| 3a 20 49 6e 74 65 67 65 | 72 3b 0d 0d 7b 43 61 6c |: Intege|r;..{Cal|
|00001330| 6c 20 74 68 69 73 20 61 | 74 20 74 68 65 20 62 65 |l this a|t the be|
|00001340| 67 69 6e 6e 69 6e 67 20 | 6f 66 20 79 6f 75 72 20 |ginning |of your |
|00001350| 70 72 6f 67 72 61 6d 2e | 7d 0d 20 70 72 6f 63 65 |program.|}. proce|
|00001360| 64 75 72 65 20 49 6e 69 | 74 57 61 74 63 68 3b 0d |dure Ini|tWatch;.|
|00001370| 0d 7b 43 61 6c 6c 20 53 | 68 6f 77 57 61 74 63 68 |.{Call S|howWatch|
|00001380| 20 61 73 20 79 6f 75 20 | 77 6f 75 6c 64 20 49 6e | as you |would In|
|00001390| 69 74 43 75 72 73 6f 72 | 2e 7d 0d 20 70 72 6f 63 |itCursor|.}. proc|
|000013a0| 65 64 75 72 65 20 53 68 | 6f 77 57 61 74 63 68 3b |edure Sh|owWatch;|
|000013b0| 0d 0d 7b 54 68 69 73 20 | 72 6f 75 74 69 6e 65 20 |..{This |routine |
|000013c0| 69 73 20 63 61 6c 6c 65 | 64 20 77 68 65 6e 20 77 |is calle|d when w|
|000013d0| 65 20 77 61 6e 74 20 74 | 6f 20 66 69 72 73 74 20 |e want t|o first |
|000013e0| 73 74 61 72 74 20 64 69 | 73 70 6c 61 79 69 6e 67 |start di|splaying|
|000013f0| 20 74 68 65 20 6d 6f 76 | 69 6e 67 0d 77 61 74 63 | the mov|ing.watc|
|00001400| 68 20 63 75 72 73 6f 72 | 2e 7d 0d 20 70 72 6f 63 |h cursor|.}. proc|
|00001410| 65 64 75 72 65 20 53 74 | 61 72 74 53 70 69 6e 6e |edure St|artSpinn|
|00001420| 69 6e 67 57 61 74 63 68 | 3b 0d 0d 7b 54 68 69 73 |ingWatch|;..{This|
|00001430| 20 72 6f 75 74 69 6e 65 | 20 69 73 20 63 61 6c 6c | routine| is call|
|00001440| 65 64 20 77 68 65 6e 20 | 77 65 20 77 61 6e 74 20 |ed when |we want |
|00001450| 74 6f 20 72 6f 74 61 74 | 65 20 74 68 65 20 77 61 |to rotat|e the wa|
|00001460| 74 63 68 20 74 6f 20 74 | 68 65 20 6e 65 78 74 0d |tch to t|he next.|
|00001470| 70 6f 73 69 74 69 6f 6e | 2e 20 20 57 65 20 73 68 |position|. We sh|
|00001480| 6f 75 6c 64 7d 0d 7b 6a | 75 73 74 20 63 61 6c 6c |ould}.{j|ust call|
|00001490| 20 74 68 69 73 20 72 6f | 75 74 69 6e 65 20 61 73 | this ro|utine as|
|000014a0| 20 6f 66 74 65 6e 20 61 | 73 20 70 6f 73 73 69 62 | often a|s possib|
|000014b0| 6c 65 3b 20 74 68 69 73 | 20 72 6f 75 74 69 6e 65 |le; this| routine|
|000014c0| 20 77 6f 72 72 69 65 73 | 20 61 62 6f 75 74 0d 74 | worries| about.t|
|000014d0| 68 65 20 74 69 6d 69 6e | 67 20 69 74 73 65 6c 66 |he timin|g itself|
|000014e0| 2e 7d 0d 20 70 72 6f 63 | 65 64 75 72 65 20 53 70 |.}. proc|edure Sp|
|000014f0| 69 6e 57 61 74 63 68 3b | 0d 0d 7b 54 68 69 73 20 |inWatch;|..{This |
|00001500| 72 6f 75 74 69 6e 65 20 | 64 65 61 6c 6c 6f 63 61 |routine |dealloca|
|00001510| 74 65 73 20 74 68 65 20 | 6d 65 6d 6f 72 79 20 77 |tes the |memory w|
|00001520| 65 20 75 73 65 64 20 61 | 6e 64 20 69 6e 69 74 73 |e used a|nd inits|
|00001530| 20 74 68 65 20 63 75 72 | 73 6f 72 2e 7d 0d 20 70 | the cur|sor.}. p|
|00001540| 72 6f 63 65 64 75 72 65 | 20 53 74 6f 70 53 70 69 |rocedure| StopSpi|
|00001550| 6e 6e 69 6e 67 57 61 74 | 63 68 3b 0d 0d 69 6d 70 |nningWat|ch;..imp|
|00001560| 6c 65 6d 65 6e 74 61 74 | 69 6f 6e 0d 0d 20 70 72 |lementat|ion.. pr|
|00001570| 6f 63 65 64 75 72 65 20 | 49 6e 69 74 57 61 74 63 |ocedure |InitWatc|
|00001580| 68 3b 0d 20 62 65 67 69 | 6e 0d 7b 47 65 74 20 61 |h;. begi|n.{Get a|
|00001590| 20 68 61 6e 64 6c 65 20 | 74 6f 20 74 68 61 74 20 | handle |to that |
|000015a0| 73 74 61 6e 64 61 72 64 | 20 77 61 74 63 68 20 63 |standard| watch c|
|000015b0| 75 72 73 6f 72 20 61 6e | 64 20 68 6f 6c 64 20 6f |ursor an|d hold o|
|000015c0| 6e 20 74 6f 20 69 74 20 | 66 6f 72 20 74 68 65 20 |n to it |for the |
|000015d0| 72 65 73 74 0d 6f 66 20 | 74 68 65 20 70 72 6f 67 |rest.of |the prog|
|000015e0| 72 61 6d 2e 7d 0d 20 20 | 67 57 61 74 63 68 48 61 |ram.}. |gWatchHa|
|000015f0| 6e 64 6c 65 20 3a 3d 20 | 47 65 74 43 75 72 73 6f |ndle := |GetCurso|
|00001600| 72 28 57 61 74 63 68 43 | 75 72 73 6f 72 29 3b 0d |r(WatchC|ursor);.|
|00001610| 20 65 6e 64 3b 0d 0d 0d | 20 70 72 6f 63 65 64 75 | end;...| procedu|
|00001620| 72 65 20 53 68 6f 77 57 | 61 74 63 68 3b 0d 7b 53 |re ShowW|atch;.{S|
|00001630| 65 74 20 63 75 72 73 6f | 72 20 74 6f 20 77 61 74 |et curso|r to wat|
|00001640| 63 68 7d 0d 7b 57 65 20 | 68 61 76 65 20 6e 6f 20 |ch}.{We |have no |
|00001650| 72 6f 75 74 69 6e 65 20 | 53 68 6f 77 50 6f 69 6e |routine |ShowPoin|
|00001660| 74 65 72 2c 20 62 65 63 | 61 75 73 65 20 77 65 20 |ter, bec|ause we |
|00001670| 63 61 6e 20 73 69 6d 70 | 6c 79 20 73 61 79 20 49 |can simp|ly say I|
|00001680| 6e 69 74 43 75 72 73 6f | 72 2e 7d 0d 20 62 65 67 |nitCurso|r.}. beg|
|00001690| 69 6e 0d 20 20 53 65 74 | 43 75 72 73 6f 72 28 67 |in. Set|Cursor(g|
|000016a0| 57 61 74 63 68 48 61 6e | 64 6c 65 5e 5e 29 3b 0d |WatchHan|dle^^);.|
|000016b0| 20 65 6e 64 3b 0d 0d 7b | 54 68 69 73 20 72 6f 75 | end;..{|This rou|
|000016c0| 74 69 6e 65 20 69 73 20 | 63 61 6c 6c 65 64 20 77 |tine is |called w|
|000016d0| 68 65 6e 20 77 65 20 66 | 69 72 73 74 20 73 74 61 |hen we f|irst sta|
|000016e0| 72 74 20 77 61 6e 74 20 | 74 6f 20 64 69 73 70 6c |rt want |to displ|
|000016f0| 61 79 20 74 68 65 20 6d | 6f 76 69 6e 67 0d 77 61 |ay the m|oving.wa|
|00001700| 74 63 68 20 63 75 72 73 | 6f 72 2e 7d 0d 20 70 72 |tch curs|or.}. pr|
|00001710| 6f 63 65 64 75 72 65 20 | 53 74 61 72 74 53 70 69 |ocedure |StartSpi|
|00001720| 6e 6e 69 6e 67 57 61 74 | 63 68 3b 0d 20 20 76 61 |nningWat|ch;. va|
|00001730| 72 0d 20 20 20 63 6f 75 | 6e 74 65 72 3a 20 49 6e |r. cou|nter: In|
|00001740| 74 65 67 65 72 3b 0d 20 | 62 65 67 69 6e 0d 20 20 |teger;. |begin. |
|00001750| 66 6f 72 20 63 6f 75 6e | 74 65 72 20 3a 3d 20 31 |for coun|ter := 1|
|00001760| 20 74 6f 20 37 20 64 6f | 0d 20 20 20 67 53 70 69 | to 7 do|. gSpi|
|00001770| 6e 6e 69 6e 67 57 61 74 | 63 68 48 61 6e 64 6c 65 |nningWat|chHandle|
|00001780| 5b 63 6f 75 6e 74 65 72 | 5d 20 3a 3d 20 47 65 74 |[counter|] := Get|
|00001790| 43 75 72 73 6f 72 28 43 | 6f 75 6e 74 65 72 20 2b |Cursor(C|ounter +|
|000017a0| 20 32 35 36 29 3b 0d 20 | 20 67 53 70 69 6e 6e 69 | 256);. | gSpinni|
|000017b0| 6e 67 57 61 74 63 68 53 | 74 61 74 65 20 3a 3d 20 |ngWatchS|tate := |
|000017c0| 38 3b 0d 20 20 67 53 70 | 69 6e 6e 69 6e 67 57 61 |8;. gSp|inningWa|
|000017d0| 74 63 68 54 69 6d 65 72 | 20 3a 3d 20 54 69 63 6b |tchTimer| := Tick|
|000017e0| 43 6f 75 6e 74 3b 0d 20 | 65 6e 64 3b 0d 0d 7b 54 |Count;. |end;..{T|
|000017f0| 68 69 73 20 72 6f 75 74 | 69 6e 65 20 69 73 20 63 |his rout|ine is c|
|00001800| 61 6c 6c 65 64 20 77 68 | 65 6e 20 77 65 20 77 61 |alled wh|en we wa|
|00001810| 6e 74 20 74 6f 20 72 6f | 74 61 74 65 20 74 68 65 |nt to ro|tate the|
|00001820| 20 77 61 74 63 68 20 74 | 6f 20 74 68 65 20 6e 65 | watch t|o the ne|
|00001830| 78 74 0d 70 6f 73 69 74 | 69 6f 6e 2e 20 20 57 65 |xt.posit|ion. We|
|00001840| 20 73 68 6f 75 6c 64 7d | 0d 7b 6a 75 73 74 20 63 | should}|.{just c|
|00001850| 61 6c 6c 20 74 68 69 73 | 20 72 6f 75 74 69 6e 65 |all this| routine|
|00001860| 20 61 73 20 6f 66 74 65 | 6e 20 61 73 20 70 6f 73 | as ofte|n as pos|
|00001870| 73 69 62 6c 65 3b 20 74 | 68 69 73 20 72 6f 75 74 |sible; t|his rout|
|00001880| 69 6e 65 20 77 6f 72 72 | 69 65 73 20 61 62 6f 75 |ine worr|ies abou|
|00001890| 74 0d 74 68 65 20 74 69 | 6d 69 6e 67 2e 7d 0d 20 |t.the ti|ming.}. |
|000018a0| 70 72 6f 63 65 64 75 72 | 65 20 53 70 69 6e 57 61 |procedur|e SpinWa|
|000018b0| 74 63 68 3b 0d 20 20 76 | 61 72 0d 20 20 20 4e 65 |tch;. v|ar. Ne|
|000018c0| 77 54 69 6d 65 3a 20 4c | 6f 6e 67 49 6e 74 3b 0d |wTime: L|ongInt;.|
|000018d0| 20 62 65 67 69 6e 0d 20 | 20 4e 65 77 54 69 6d 65 | begin. | NewTime|
|000018e0| 20 3a 3d 20 54 69 63 6b | 43 6f 75 6e 74 3b 0d 20 | := Tick|Count;. |
|000018f0| 20 69 66 20 28 4e 65 77 | 54 69 6d 65 20 2d 20 33 | if (New|Time - 3|
|00001900| 30 29 20 3e 20 67 53 70 | 69 6e 6e 69 6e 67 57 61 |0) > gSp|inningWa|
|00001910| 74 63 68 54 69 6d 65 72 | 20 74 68 65 6e 0d 20 20 |tchTimer| then. |
|00001920| 20 62 65 67 69 6e 0d 20 | 20 20 20 67 53 70 69 6e | begin. | gSpin|
|00001930| 6e 69 6e 67 57 61 74 63 | 68 53 74 61 74 65 20 3a |ningWatc|hState :|
|00001940| 3d 20 67 53 70 69 6e 6e | 69 6e 67 57 61 74 63 68 |= gSpinn|ingWatch|
|00001950| 53 74 61 74 65 20 2b 20 | 31 3b 0d 20 20 20 20 67 |State + |1;. g|
|00001960| 53 70 69 6e 6e 69 6e 67 | 57 61 74 63 68 54 69 6d |Spinning|WatchTim|
|00001970| 65 72 20 3a 3d 20 4e 65 | 77 54 69 6d 65 3b 0d 20 |er := Ne|wTime;. |
|00001980| 20 20 20 69 66 20 67 53 | 70 69 6e 6e 69 6e 67 57 | if gS|pinningW|
|00001990| 61 74 63 68 53 74 61 74 | 65 20 3e 20 38 20 74 68 |atchStat|e > 8 th|
|000019a0| 65 6e 0d 20 20 20 20 20 | 67 53 70 69 6e 6e 69 6e |en. |gSpinnin|
|000019b0| 67 57 61 74 63 68 53 74 | 61 74 65 20 3a 3d 20 31 |gWatchSt|ate := 1|
|000019c0| 3b 0d 20 20 20 20 69 66 | 20 67 53 70 69 6e 6e 69 |;. if| gSpinni|
|000019d0| 6e 67 57 61 74 63 68 53 | 74 61 74 65 20 3d 20 38 |ngWatchS|tate = 8|
|000019e0| 20 74 68 65 6e 0d 20 20 | 20 20 20 53 68 6f 77 57 | then. | ShowW|
|000019f0| 61 74 63 68 0d 20 20 20 | 20 65 6c 73 65 0d 20 20 |atch. | else. |
|00001a00| 20 20 20 53 65 74 43 75 | 72 73 6f 72 28 67 53 70 | SetCu|rsor(gSp|
|00001a10| 69 6e 6e 69 6e 67 57 61 | 74 63 68 48 61 6e 64 6c |inningWa|tchHandl|
|00001a20| 65 5b 67 53 70 69 6e 6e | 69 6e 67 57 61 74 63 68 |e[gSpinn|ingWatch|
|00001a30| 53 74 61 74 65 5d 5e 5e | 29 3b 0d 20 20 20 65 6e |State]^^|);. en|
|00001a40| 64 3b 0d 20 65 6e 64 3b | 0d 0d 7b 54 68 69 73 20 |d;. end;|..{This |
|00001a50| 72 6f 75 74 69 6e 65 20 | 64 65 61 6c 6c 6f 63 61 |routine |dealloca|
|00001a60| 74 65 73 20 74 68 65 20 | 6d 65 6d 6f 72 79 20 77 |tes the |memory w|
|00001a70| 65 20 75 73 65 64 20 61 | 6e 64 20 69 6e 69 74 73 |e used a|nd inits|
|00001a80| 20 74 68 65 20 63 75 72 | 73 6f 72 2e 7d 0d 20 70 | the cur|sor.}. p|
|00001a90| 72 6f 63 65 64 75 72 65 | 20 53 74 6f 70 53 70 69 |rocedure| StopSpi|
|00001aa0| 6e 6e 69 6e 67 57 61 74 | 63 68 3b 0d 20 20 76 61 |nningWat|ch;. va|
|00001ab0| 72 0d 20 20 20 63 6f 75 | 6e 74 65 72 3a 20 49 6e |r. cou|nter: In|
|00001ac0| 74 65 67 65 72 3b 0d 20 | 62 65 67 69 6e 0d 20 20 |teger;. |begin. |
|00001ad0| 66 6f 72 20 63 6f 75 6e | 74 65 72 20 3a 3d 20 31 |for coun|ter := 1|
|00001ae0| 20 74 6f 20 37 20 64 6f | 0d 20 20 20 52 65 6c 65 | to 7 do|. Rele|
|00001af0| 61 73 65 52 65 73 6f 75 | 72 63 65 28 48 61 6e 64 |aseResou|rce(Hand|
|00001b00| 6c 65 28 67 53 70 69 6e | 6e 69 6e 67 57 61 74 63 |le(gSpin|ningWatc|
|00001b10| 68 48 61 6e 64 6c 65 5b | 63 6f 75 6e 74 65 72 5d |hHandle[|counter]|
|00001b20| 29 29 3b 0d 20 65 6e 64 | 3b 0d 0d 65 6e 64 2e 0d |));. end|;..end..|
|00001b30| 0d 0d 0d 0d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |....----|--------|
|00001b40| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0d |--------|-------.|
|00001b50| 0d 46 72 6f 6d 3a 20 6b | 75 72 69 73 75 74 6f 40 |.From: k|urisuto@|
|00001b60| 42 41 43 48 2e 55 44 45 | 4c 2e 45 44 55 20 28 22 |BACH.UDE|L.EDU ("|
|00001b70| 53 65 61 6e 20 4a 2e 20 | 43 72 69 73 74 22 29 0d |Sean J. |Crist").|
|00001b80| 53 75 62 6a 65 63 74 3a | 20 4d 6f 72 65 20 66 72 |Subject:| More fr|
|00001b90| 65 65 20 63 6f 64 65 3a | 20 20 53 69 6d 70 6c 69 |ee code:| Simpli|
|00001ba0| 66 79 69 6e 67 20 74 68 | 65 20 4c 69 73 74 20 4d |fying th|e List M|
|00001bb0| 61 6e 61 67 65 72 0d 44 | 61 74 65 3a 20 31 38 20 |anager.D|ate: 18 |
|00001bc0| 53 65 70 20 39 32 20 30 | 33 3a 33 33 3a 31 33 20 |Sep 92 0|3:33:13 |
|00001bd0| 47 4d 54 0d 0d 0d 20 20 | 20 20 20 54 68 65 20 66 |GMT... | The f|
|00001be0| 6f 6c 6c 6f 77 69 6e 67 | 20 63 6f 64 65 2c 20 6f |ollowing| code, o|
|00001bf0| 6e 63 65 20 61 67 61 69 | 6e 2c 20 69 73 20 6e 6f |nce agai|n, is no|
|00001c00| 74 68 69 6e 67 20 70 61 | 72 74 69 63 75 6c 61 72 |thing pa|rticular|
|00001c10| 6c 79 20 67 6c 61 6d 6f | 72 6f 75 73 3b 20 69 74 |ly glamo|rous; it|
|00001c20| 0d 73 69 6d 70 6c 79 20 | 6d 61 6b 65 73 20 69 74 |.simply |makes it|
|00001c30| 20 65 61 73 69 65 72 20 | 74 6f 20 75 73 65 20 74 | easier |to use t|
|00001c40| 68 65 20 4c 69 73 74 20 | 4d 61 6e 61 67 65 72 20 |he List |Manager |
|00001c50| 74 6f 20 63 72 65 61 74 | 65 20 61 6e 64 20 6d 61 |to creat|e and ma|
|00001c60| 6e 61 67 65 20 6c 69 73 | 74 73 0d 6f 66 20 73 74 |nage lis|ts.of st|
|00001c70| 72 69 6e 67 73 2e 20 20 | 4f 6e 65 20 6f 66 20 74 |rings. |One of t|
|00001c80| 68 65 20 6d 6f 73 74 20 | 63 6f 6d 6d 6f 6e 20 75 |he most |common u|
|00001c90| 73 65 73 20 66 6f 72 20 | 74 68 65 20 4c 69 73 74 |ses for |the List|
|00001ca0| 20 4d 61 6e 61 67 65 72 | 20 69 73 0d 73 63 72 6f | Manager| is.scro|
|00001cb0| 6c 6c 61 62 6c 65 2c 20 | 6f 6e 65 2d 64 69 6d 65 |llable, |one-dime|
|00001cc0| 6e 73 69 6f 6e 61 6c 2c | 20 66 69 78 65 64 2d 73 |nsional,| fixed-s|
|00001cd0| 69 7a 65 0d 6c 69 73 74 | 73 20 6f 66 20 73 74 72 |ize.list|s of str|
|00001ce0| 69 6e 67 73 20 28 61 73 | 20 69 6e 20 53 46 47 65 |ings (as| in SFGe|
|00001cf0| 74 46 69 6c 65 2c 20 53 | 46 50 75 74 46 69 6c 65 |tFile, S|FPutFile|
|00001d00| 29 2e 20 20 54 68 65 20 | 4c 69 73 74 20 4d 61 6e |). The |List Man|
|00001d10| 61 67 65 72 20 69 73 20 | 67 6f 6f 64 0d 66 6f 72 |ager is |good.for|
|00001d20| 20 63 72 65 61 74 69 6e | 67 20 61 6c 6c 20 6b 69 | creatin|g all ki|
|00001d30| 6e 64 73 20 6f 66 20 6c | 69 73 74 73 20 28 73 75 |nds of l|ists (su|
|00001d40| 63 68 20 61 73 20 6c 69 | 73 74 73 20 6f 66 20 69 |ch as li|sts of i|
|00001d50| 63 6f 6e 73 29 2c 20 62 | 75 74 20 61 20 6c 6f 74 |cons), b|ut a lot|
|00001d60| 20 6f 66 0d 74 68 69 73 | 20 66 75 6e 63 74 69 6f | of.this| functio|
|00001d70| 6e 61 6c 69 74 79 20 69 | 73 20 61 20 68 61 73 73 |nality i|s a hass|
|00001d80| 6c 65 20 66 6f 72 20 70 | 72 6f 67 72 61 6d 6d 65 |le for p|rogramme|
|00001d90| 72 73 20 77 68 6f 20 6f | 6e 6c 79 20 6e 65 65 64 |rs who o|nly need|
|00001da0| 20 61 20 73 69 6d 70 6c | 65 20 6c 69 73 74 0d 6f | a simpl|e list.o|
|00001db0| 66 20 73 74 72 69 6e 67 | 73 2e 0d 20 20 20 20 20 |f string|s.. |
|00001dc0| 54 68 65 20 63 6f 64 65 | 20 62 65 6c 6f 77 20 61 |The code| below a|
|00001dd0| 6c 6c 6f 77 73 20 79 6f | 75 20 63 72 65 61 74 65 |llows yo|u create|
|00001de0| 20 61 6e 64 20 64 69 73 | 70 6f 73 65 20 6f 66 20 | and dis|pose of |
|00001df0| 6c 69 73 74 73 20 6f 66 | 20 73 74 72 69 6e 67 73 |lists of| strings|
|00001e00| 2e 20 20 49 74 0d 61 6c | 6c 6f 77 73 20 79 6f 75 |. It.al|lows you|
|00001e10| 20 74 6f 20 61 64 64 2c | 20 72 65 6e 61 6d 65 2c | to add,| rename,|
|00001e20| 20 61 6e 64 20 72 65 6d | 6f 76 65 20 65 6c 65 6d | and rem|ove elem|
|00001e30| 65 6e 74 73 20 69 6e 20 | 74 68 65 20 6c 69 73 74 |ents in |the list|
|00001e40| 2c 20 61 6e 64 20 68 61 | 6e 64 6c 65 73 0d 6d 6f |, and ha|ndles.mo|
|00001e50| 75 73 65 20 63 6c 69 63 | 6b 73 20 61 6e 64 20 75 |use clic|ks and u|
|00001e60| 70 64 61 74 65 20 65 76 | 65 6e 74 73 2e 20 20 49 |pdate ev|ents. I|
|00001e70| 74 20 61 6c 73 6f 20 6b | 65 65 70 73 20 74 68 65 |t also k|eeps the|
|00001e80| 20 6c 69 73 74 73 20 69 | 6e 20 61 6c 70 68 61 62 | lists i|n alphab|
|00001e90| 65 74 69 63 61 6c 0d 6f | 72 64 65 72 2e 0d 20 20 |etical.o|rder.. |
|00001ea0| 20 20 20 49 20 72 65 6d | 65 6d 62 65 72 20 68 61 | I rem|ember ha|
|00001eb0| 76 69 6e 67 20 61 20 6c | 6f 74 20 6f 66 20 74 72 |ving a l|ot of tr|
|00001ec0| 6f 75 62 6c 65 20 6c 65 | 61 72 6e 69 6e 67 20 68 |ouble le|arning h|
|00001ed0| 6f 77 20 74 6f 20 63 61 | 6c 6c 20 74 68 65 20 4c |ow to ca|ll the L|
|00001ee0| 69 73 74 0d 4d 61 6e 61 | 67 65 72 20 70 72 6f 70 |ist.Mana|ger prop|
|00001ef0| 65 72 6c 79 3b 20 49 20 | 68 6f 70 65 20 74 68 61 |erly; I |hope tha|
|00001f00| 74 20 74 68 69 73 20 63 | 6f 64 65 20 68 65 6c 70 |t this c|ode help|
|00001f10| 73 20 73 6f 6d 65 62 6f | 64 79 20 65 6c 73 65 2e |s somebo|dy else.|
|00001f20| 0d 0d 48 6f 77 20 74 6f | 20 75 73 65 20 74 68 65 |..How to| use the|
|00001f30| 73 65 20 72 6f 75 74 69 | 6e 65 73 3a 0d 20 20 20 |se routi|nes:. |
|00001f40| 20 20 45 76 65 72 79 20 | 6f 6e 65 20 6f 66 20 74 | Every |one of t|
|00001f50| 68 65 73 65 20 72 6f 75 | 74 69 6e 65 73 20 74 61 |hese rou|tines ta|
|00001f60| 6b 65 73 20 61 20 4c 69 | 73 74 48 61 6e 64 6c 65 |kes a Li|stHandle|
|00001f70| 20 61 73 20 6f 6e 65 20 | 6f 66 20 69 74 73 0d 70 | as one |of its.p|
|00001f80| 61 72 61 6d 65 74 65 72 | 73 2e 20 20 49 74 20 69 |arameter|s. It i|
|00001f90| 73 20 4f 4b 20 74 6f 20 | 68 61 76 65 20 73 65 76 |s OK to |have sev|
|00001fa0| 65 72 61 6c 20 6c 69 73 | 74 73 20 67 6f 69 6e 67 |eral lis|ts going|
|00001fb0| 20 61 74 20 6f 6e 65 20 | 74 69 6d 65 3b 20 6a 75 | at one |time; ju|
|00001fc0| 73 74 20 6d 61 6b 65 0d | 73 75 72 65 20 79 6f 75 |st make.|sure you|
|00001fd0| 20 70 61 73 73 20 74 68 | 65 20 72 69 67 68 74 20 | pass th|e right |
|00001fe0| 4c 69 73 74 48 61 6e 64 | 6c 65 20 77 68 65 6e 20 |ListHand|le when |
|00001ff0| 79 6f 75 20 63 61 6c 6c | 20 6f 6e 65 20 6f 66 20 |you call| one of |
|00002000| 74 68 65 73 65 20 72 6f | 75 74 69 6e 65 73 2e 0d |these ro|utines..|
|00002010| 20 20 20 20 20 0d 43 72 | 65 61 74 65 4c 69 73 74 | .Cr|eateList|
|00002020| 3a 20 20 43 61 6c 6c 20 | 74 68 69 73 20 72 6f 75 |: Call |this rou|
|00002030| 74 69 6e 65 20 74 6f 20 | 63 72 65 61 74 65 20 61 |tine to |create a|
|00002040| 20 6e 65 77 20 6c 69 73 | 74 20 6f 66 20 73 74 72 | new lis|t of str|
|00002050| 69 6e 67 73 2e 20 20 50 | 61 73 73 20 69 74 0d 61 |ings. P|ass it.a|
|00002060| 6e 20 65 6d 70 74 79 20 | 4c 69 73 74 48 61 6e 64 |n empty |ListHand|
|00002070| 6c 65 2c 20 61 73 20 77 | 65 6c 6c 20 61 73 20 74 |le, as w|ell as t|
|00002080| 68 65 20 70 6f 69 6e 74 | 65 72 20 74 6f 20 74 68 |he point|er to th|
|00002090| 65 20 77 69 6e 64 6f 77 | 20 74 6f 20 63 6f 6e 74 |e window| to cont|
|000020a0| 61 69 6e 20 74 68 65 0d | 6c 69 73 74 2c 20 61 6e |ain the.|list, an|
|000020b0| 64 20 74 68 65 20 72 65 | 63 74 61 6e 67 6c 65 20 |d the re|ctangle |
|000020c0| 69 6e 20 77 68 69 63 68 | 20 74 68 65 20 6c 69 73 |in which| the lis|
|000020d0| 74 20 73 68 6f 75 6c 64 | 20 62 65 20 65 6e 63 6c |t should| be encl|
|000020e0| 6f 73 65 64 2e 20 20 54 | 68 65 20 6c 69 73 74 0d |osed. T|he list.|
|000020f0| 63 61 6e 20 74 61 6b 65 | 20 75 70 20 61 6e 20 65 |can take| up an e|
|00002100| 6e 74 69 72 65 20 77 69 | 6e 64 6f 77 2c 20 6f 72 |ntire wi|ndow, or|
|00002110| 20 6f 6e 6c 79 0d 70 61 | 72 74 20 6f 66 20 69 74 | only.pa|rt of it|
|00002120| 2c 20 61 73 20 79 6f 75 | 20 70 72 65 66 65 72 2e |, as you| prefer.|
|00002130| 20 20 54 68 65 20 73 63 | 72 6f 6c 6c 20 62 61 72 | The sc|roll bar|
|00002140| 20 77 69 6c 6c 20 62 65 | 20 64 72 61 77 6e 20 69 | will be| drawn i|
|00002150| 6e 73 69 64 65 20 74 68 | 65 0d 72 65 63 74 61 6e |nside th|e.rectan|
|00002160| 67 6c 65 20 79 6f 75 20 | 73 70 65 63 69 66 79 2c |gle you |specify,|
|00002170| 20 73 6f 20 79 6f 75 20 | 64 6f 6e 27 74 20 6e 65 | so you |don't ne|
|00002180| 65 64 20 74 6f 20 6c 65 | 61 76 65 20 65 78 74 72 |ed to le|ave extr|
|00002190| 61 20 72 6f 6f 6d 20 66 | 6f 72 20 69 74 2e 20 0d |a room f|or it. .|
|000021a0| 49 6e 69 74 69 61 6c 6c | 79 2c 20 74 68 65 20 6c |Initiall|y, the l|
|000021b0| 69 73 74 20 77 69 6c 6c | 20 63 6f 6e 74 61 69 6e |ist will| contain|
|000021c0| 20 6e 6f 20 73 74 72 69 | 6e 67 73 2e 0d 0d 55 70 | no stri|ngs...Up|
|000021d0| 64 61 74 65 4c 69 73 74 | 3a 20 20 43 61 6c 6c 20 |dateList|: Call |
|000021e0| 74 68 69 73 20 69 6e 20 | 72 65 73 70 6f 6e 73 65 |this in |response|
|000021f0| 20 74 6f 20 61 6e 20 55 | 70 64 61 74 65 20 65 76 | to an U|pdate ev|
|00002200| 65 6e 74 20 74 6f 20 72 | 65 64 72 61 77 20 74 68 |ent to r|edraw th|
|00002210| 65 0d 70 6f 72 74 69 6f | 6e 73 20 6f 66 20 74 68 |e.portio|ns of th|
|00002220| 65 20 6c 69 73 74 20 77 | 68 69 63 68 20 6e 65 65 |e list w|hich nee|
|00002230| 64 20 69 74 2e 20 20 54 | 68 69 73 20 72 6f 75 74 |d it. T|his rout|
|00002240| 69 6e 65 20 61 73 73 75 | 6d 65 73 20 74 68 61 74 |ine assu|mes that|
|00002250| 20 79 6f 75 20 68 61 76 | 65 0d 61 6c 72 65 61 64 | you hav|e.alread|
|00002260| 79 20 63 61 6c 6c 65 64 | 20 42 65 67 69 6e 55 70 |y called| BeginUp|
|00002270| 64 61 74 65 20 66 6f 72 | 20 74 68 65 20 77 69 6e |date for| the win|
|00002280| 64 6f 77 20 63 6f 6e 74 | 61 69 6e 69 6e 67 20 74 |dow cont|aining t|
|00002290| 68 65 20 6c 69 73 74 2c | 20 61 6e 64 20 74 68 61 |he list,| and tha|
|000022a0| 74 0d 79 6f 75 20 68 61 | 76 65 20 6e 6f 74 20 79 |t.you ha|ve not y|
|000022b0| 65 74 20 63 61 6c 6c 65 | 64 20 45 6e 64 55 70 64 |et calle|d EndUpd|
|000022c0| 61 74 65 2e 0d 0d 44 6f | 43 6c 69 63 6b 3a 20 20 |ate...Do|Click: |
|000022d0| 43 61 6c 6c 20 74 68 69 | 73 20 66 75 6e 63 74 69 |Call thi|s functi|
|000022e0| 6f 6e 20 69 6e 20 72 65 | 73 70 6f 6e 73 65 20 74 |on in re|sponse t|
|000022f0| 6f 20 61 20 4d 6f 75 73 | 65 44 6f 77 6e 20 65 76 |o a Mous|eDown ev|
|00002300| 65 6e 74 20 69 6e 73 69 | 64 65 20 79 6f 75 72 0d |ent insi|de your.|
|00002310| 6c 69 73 74 27 73 20 72 | 65 63 74 61 6e 67 6c 65 |list's r|ectangle|
|00002320| 2e 20 20 44 6f 43 6c 69 | 63 6b 20 75 73 75 61 6c |. DoCli|ck usual|
|00002330| 6c 79 20 72 65 74 75 72 | 6e 73 20 46 41 4c 53 45 |ly retur|ns FALSE|
|00002340| 2c 20 62 75 74 20 69 74 | 20 72 65 74 75 72 6e 73 |, but it| returns|
|00002350| 20 54 52 55 45 20 69 66 | 0d 74 68 69 73 20 63 6c | TRUE if|.this cl|
|00002360| 69 63 6b 20 69 73 20 74 | 68 65 20 73 65 63 6f 6e |ick is t|he secon|
|00002370| 64 20 63 6c 69 63 6b 20 | 6f 66 20 61 20 64 6f 75 |d click |of a dou|
|00002380| 62 6c 65 2d 63 6c 69 63 | 6b 20 28 69 2e 65 2e 2c |ble-clic|k (i.e.,|
|00002390| 20 54 52 55 45 20 6d 65 | 61 6e 73 20 74 68 65 0d | TRUE me|ans the.|
|000023a0| 75 73 65 72 20 64 6f 75 | 62 6c 65 2d 63 6c 69 63 |user dou|ble-clic|
|000023b0| 6b 65 64 20 61 6e 20 69 | 74 65 6d 29 2e 0d 0d 54 |ked an i|tem)...T|
|000023c0| 75 72 6e 4f 66 66 53 65 | 6c 65 63 74 69 6f 6e 3a |urnOffSe|lection:|
|000023d0| 20 20 54 68 69 73 20 72 | 6f 75 74 69 6e 65 20 75 | This r|outine u|
|000023e0| 6e 68 69 6c 69 67 68 74 | 73 20 74 68 65 20 63 75 |nhilight|s the cu|
|000023f0| 72 72 65 6e 74 6c 79 20 | 68 69 6c 69 67 68 74 65 |rrently |hilighte|
|00002400| 64 20 63 65 6c 6c 2c 0d | 69 66 20 61 6e 79 2e 0d |d cell,.|if any..|
|00002410| 0d 4c 69 73 74 53 65 6c | 65 63 74 69 6f 6e 3a 20 |.ListSel|ection: |
|00002420| 20 54 68 69 73 20 72 65 | 74 75 72 6e 73 20 74 68 | This re|turns th|
|00002430| 65 20 73 74 72 69 6e 67 | 20 6f 66 20 74 68 65 20 |e string| of the |
|00002440| 63 75 72 72 65 6e 74 6c | 79 20 73 65 6c 65 63 74 |currentl|y select|
|00002450| 65 64 20 63 65 6c 6c 2e | 20 0d 49 66 20 6e 6f 20 |ed cell.| .If no |
|00002460| 63 65 6c 6c 20 69 73 20 | 63 75 72 72 65 6e 74 6c |cell is |currentl|
|00002470| 79 20 73 65 6c 65 63 74 | 65 64 2c 20 74 68 65 20 |y select|ed, the |
|00002480| 65 6d 70 74 79 20 73 74 | 72 69 6e 67 20 69 73 20 |empty st|ring is |
|00002490| 72 65 74 75 72 6e 65 64 | 2e 0d 0d 41 64 64 43 65 |returned|...AddCe|
|000024a0| 6c 6c 3a 20 20 43 61 6c | 6c 20 74 68 69 73 20 72 |ll: Cal|l this r|
|000024b0| 6f 75 74 69 6e 65 20 74 | 6f 20 61 64 64 20 61 20 |outine t|o add a |
|000024c0| 6e 65 77 20 63 65 6c 6c | 20 74 6f 20 74 68 65 20 |new cell| to the |
|000024d0| 6c 69 73 74 2e 20 20 54 | 68 65 20 73 74 72 69 6e |list. T|he strin|
|000024e0| 67 20 79 6f 75 0d 70 61 | 73 73 20 74 6f 20 74 68 |g you.pa|ss to th|
|000024f0| 69 73 20 72 6f 75 74 69 | 6e 65 20 69 73 20 61 75 |is routi|ne is au|
|00002500| 74 6f 6d 61 74 69 63 61 | 6c 6c 79 20 61 6c 70 68 |tomatica|lly alph|
|00002510| 61 62 65 74 69 7a 65 64 | 20 77 69 74 68 69 6e 20 |abetized| within |
|00002520| 74 68 65 20 6c 69 73 74 | 2e 20 20 42 75 67 0d 61 |the list|. Bug.a|
|00002530| 6c 65 72 74 3a 20 20 74 | 68 65 20 66 69 72 73 74 |lert: t|he first|
|00002540| 20 65 6c 65 6d 65 6e 74 | 20 6f 72 20 74 77 6f 20 | element| or two |
|00002550| 6f 66 20 74 68 65 20 6c | 69 73 74 20 61 72 65 20 |of the l|ist are |
|00002560| 73 6f 6d 65 74 69 6d 65 | 73 20 6e 6f 74 20 69 6e |sometime|s not in|
|00002570| 0d 61 6c 70 68 61 62 65 | 74 69 63 61 6c 20 6f 72 |.alphabe|tical or|
|00002580| 64 65 72 2e 20 20 49 66 | 20 79 6f 75 20 74 61 6b |der. If| you tak|
|00002590| 65 20 74 68 65 20 74 69 | 6d 65 0d 74 6f 20 77 6f |e the ti|me.to wo|
|000025a0| 72 6b 20 6f 75 74 20 74 | 68 69 73 20 6b 69 6e 6b |rk out t|his kink|
|000025b0| 2c 20 70 6c 65 61 73 65 | 20 6c 65 74 20 6d 65 20 |, please| let me |
|000025c0| 6b 6e 6f 77 20 77 68 61 | 74 20 79 6f 75 20 64 69 |know wha|t you di|
|000025d0| 64 20 28 49 20 63 6f 75 | 6c 64 20 66 69 67 75 72 |d (I cou|ld figur|
|000025e0| 65 0d 74 68 69 73 20 6f | 75 74 2c 20 62 75 74 20 |e.this o|ut, but |
|000025f0| 49 20 6a 75 73 74 20 68 | 61 76 65 6e 27 74 20 74 |I just h|aven't t|
|00002600| 61 6b 65 6e 20 74 68 65 | 20 74 69 6d 65 20 74 6f |aken the| time to|
|00002610| 29 2e 20 20 54 68 69 73 | 20 62 75 67 20 69 73 20 |). This| bug is |
|00002620| 63 6f 73 6d 65 74 69 63 | 20 61 6e 64 0d 64 6f 65 |cosmetic| and.doe|
|00002630| 73 20 6e 6f 74 20 63 72 | 61 73 68 20 74 68 65 20 |s not cr|ash the |
|00002640| 70 72 6f 67 72 61 6d 2e | 0d 0d 52 65 6e 61 6d 65 |program.|..Rename|
|00002650| 43 65 6c 6c 3a 20 20 43 | 68 61 6e 67 65 73 20 74 |Cell: C|hanges t|
|00002660| 68 65 20 73 74 72 69 6e | 67 20 69 6e 20 61 20 63 |he strin|g in a c|
|00002670| 65 6c 6c 20 74 6f 20 61 | 6e 6f 74 68 65 72 20 73 |ell to a|nother s|
|00002680| 74 72 69 6e 67 2c 20 61 | 6e 64 0d 72 65 61 6c 70 |tring, a|nd.realp|
|00002690| 68 61 62 65 74 69 7a 65 | 73 20 74 68 65 20 6c 69 |habetize|s the li|
|000026a0| 73 74 2c 20 69 66 20 6e | 65 63 65 73 73 61 72 79 |st, if n|ecessary|
|000026b0| 2e 20 20 0d 0d 44 65 6c | 65 74 65 43 65 6c 6c 3a |. ..Del|eteCell:|
|000026c0| 20 20 52 65 6d 6f 76 65 | 73 20 74 68 65 20 63 65 | Remove|s the ce|
|000026d0| 6c 6c 20 77 69 74 68 20 | 74 68 65 20 67 69 76 65 |ll with |the give|
|000026e0| 6e 20 73 74 72 69 6e 67 | 20 66 72 6f 6d 20 74 68 |n string| from th|
|000026f0| 65 20 6c 69 73 74 2e 0d | 0d 44 69 73 70 6f 73 4c |e list..|.DisposL|
|00002700| 69 73 74 3a 20 20 43 61 | 6c 6c 20 74 68 69 73 20 |ist: Ca|ll this |
|00002710| 72 6f 75 74 69 6e 65 20 | 77 68 65 6e 20 79 6f 75 |routine |when you|
|00002720| 20 61 72 65 20 63 6f 6d | 70 6c 65 74 65 6c 79 20 | are com|pletely |
|00002730| 66 69 6e 69 73 68 65 64 | 20 77 69 74 68 20 61 0d |finished| with a.|
|00002740| 6c 69 73 74 20 61 6e 64 | 20 77 61 6e 74 20 74 6f |list and| want to|
|00002750| 20 64 65 61 6c 6c 6f 63 | 61 74 65 20 69 74 73 20 | dealloc|ate its |
|00002760| 6d 65 6d 6f 72 79 2e 0d | 0d 20 20 20 20 20 43 72 |memory..|. Cr|
|00002770| 65 64 69 74 3a 20 54 68 | 65 20 72 6f 75 74 69 6e |edit: Th|e routin|
|00002780| 65 73 20 43 72 65 61 74 | 65 4c 69 73 74 2c 20 55 |es Creat|eList, U|
|00002790| 70 64 61 74 65 4c 69 73 | 74 2c 20 44 6f 43 6c 69 |pdateLis|t, DoCli|
|000027a0| 63 6b 2c 20 61 6e 64 20 | 44 69 73 70 6f 73 4c 69 |ck, and |DisposLi|
|000027b0| 73 74 0d 61 72 65 20 6c | 6f 6f 73 65 6c 79 20 62 |st.are l|oosely b|
|000027c0| 61 73 65 64 20 6f 6e 20 | 73 6f 6d 65 20 63 6f 64 |ased on |some cod|
|000027d0| 65 20 49 20 72 65 63 65 | 69 76 65 64 20 66 72 6f |e I rece|ived fro|
|000027e0| 6d 20 73 6f 6d 65 62 6f | 64 79 20 6f 66 0d 63 6f |m somebo|dy of.co|
|000027f0| 6d 70 2e 73 79 73 2e 6d | 61 63 2e 70 72 6f 67 72 |mp.sys.m|ac.progr|
|00002800| 61 6d 6d 65 72 20 61 72 | 6f 75 6e 64 20 74 77 6f |ammer ar|ound two|
|00002810| 20 79 65 61 72 73 20 61 | 67 6f 2e 20 20 49 27 76 | years a|go. I'v|
|00002820| 65 20 72 65 77 72 69 74 | 74 65 6e 20 74 68 65 73 |e rewrit|ten thes|
|00002830| 65 0d 72 6f 75 74 69 6e | 65 73 2c 20 62 75 74 20 |e.routin|es, but |
|00002840| 63 72 65 64 69 74 20 69 | 73 20 64 75 65 20 74 6f |credit i|s due to|
|00002850| 20 74 68 69 73 20 63 6f | 6e 74 72 69 62 75 74 6f | this co|ntributo|
|00002860| 72 2c 20 77 68 6f 73 65 | 0d 6e 61 6d 65 20 49 20 |r, whose|.name I |
|00002870| 63 61 6e 6e 6f 74 20 72 | 65 6d 65 6d 62 65 72 2e |cannot r|emember.|
|00002880| 0d 0d 20 20 20 20 20 49 | 20 68 61 76 65 20 73 75 |.. I| have su|
|00002890| 63 63 65 73 73 66 75 6c | 6c 79 20 63 61 6c 6c 65 |ccessful|ly calle|
|000028a0| 64 20 74 68 65 73 65 20 | 72 6f 75 74 69 6e 65 73 |d these |routines|
|000028b0| 20 66 6f 72 20 6c 69 73 | 74 73 20 69 6e 20 72 65 | for lis|ts in re|
|000028c0| 67 75 6c 61 72 0d 77 69 | 6e 64 6f 77 73 20 61 73 |gular.wi|ndows as|
|000028d0| 20 77 65 6c 6c 20 61 73 | 20 69 6e 20 6d 6f 64 61 | well as| in moda|
|000028e0| 6c 20 64 69 61 6c 6f 67 | 73 2e 20 20 50 6c 65 61 |l dialog|s. Plea|
|000028f0| 73 65 20 73 65 6e 64 20 | 62 75 67 20 72 65 70 6f |se send |bug repo|
|00002900| 72 74 73 2c 20 70 72 61 | 69 73 65 2c 0d 6d 6f 6e |rts, pra|ise,.mon|
|00002910| 65 79 2c 20 65 74 63 2e | 20 74 6f 20 6b 75 72 69 |ey, etc.| to kuri|
|00002920| 73 75 74 6f 40 62 61 63 | 68 2e 75 64 65 6c 2e 65 |suto@bac|h.udel.e|
|00002930| 64 75 2e 0d 0d 75 6e 69 | 74 20 53 74 72 69 6e 67 |du...uni|t String|
|00002940| 4c 69 73 74 49 6e 74 65 | 72 66 61 63 65 3b 0d 0d |ListInte|rface;..|
|00002950| 69 6e 74 65 72 66 61 63 | 65 0d 0d 7b 43 72 65 61 |interfac|e..{Crea|
|00002960| 74 65 20 61 20 6e 65 77 | 20 6c 69 73 74 20 77 69 |te a new| list wi|
|00002970| 74 68 20 6e 6f 20 65 6c | 65 6d 65 6e 74 73 2e 7d |th no el|ements.}|
|00002980| 0d 20 70 72 6f 63 65 64 | 75 72 65 20 43 72 65 61 |. proced|ure Crea|
|00002990| 74 65 4c 69 73 74 20 28 | 76 61 72 20 54 68 65 4c |teList (|var TheL|
|000029a0| 69 73 74 48 61 6e 64 6c | 65 3a 20 4c 69 73 74 48 |istHandl|e: ListH|
|000029b0| 61 6e 64 6c 65 3b 20 54 | 68 65 57 69 6e 64 6f 77 |andle; T|heWindow|
|000029c0| 3a 0d 57 69 6e 64 6f 77 | 50 74 72 3b 20 54 68 65 |:.Window|Ptr; The|
|000029d0| 52 65 63 74 3a 20 52 65 | 63 74 29 3b 0d 0d 7b 55 |Rect: Re|ct);..{U|
|000029e0| 70 64 61 74 65 20 74 68 | 65 20 61 72 74 20 6f 66 |pdate th|e art of|
|000029f0| 20 61 20 6c 69 73 74 2e | 7d 0d 20 70 72 6f 63 65 | a list.|}. proce|
|00002a00| 64 75 72 65 20 55 70 64 | 61 74 65 4c 69 73 74 20 |dure Upd|ateList |
|00002a10| 28 54 68 65 4c 69 73 74 | 48 61 6e 64 6c 65 3a 20 |(TheList|Handle: |
|00002a20| 4c 69 73 74 48 61 6e 64 | 6c 65 29 3b 0d 0d 7b 48 |ListHand|le);..{H|
|00002a30| 61 6e 64 6c 65 20 61 20 | 63 6c 69 63 6b 20 69 6e |andle a |click in|
|00002a40| 20 74 68 65 20 6c 69 73 | 74 20 72 65 63 74 61 6e | the lis|t rectan|
|00002a50| 67 6c 65 2e 20 20 49 66 | 20 69 74 20 77 61 73 20 |gle. If| it was |
|00002a60| 61 20 64 6f 75 62 6c 65 | 2d 63 6c 69 63 6b 2c 20 |a double|-click, |
|00002a70| 77 65 20 77 69 6c 6c 0d | 72 65 74 75 72 6e 20 54 |we will.|return T|
|00002a80| 52 55 45 2e 7d 0d 20 66 | 75 6e 63 74 69 6f 6e 20 |RUE.}. f|unction |
|00002a90| 44 6f 43 6c 69 63 6b 20 | 28 54 68 65 4c 69 73 74 |DoClick |(TheList|
|00002aa0| 48 61 6e 64 6c 65 3a 20 | 4c 69 73 74 48 61 6e 64 |Handle: |ListHand|
|00002ab0| 6c 65 3b 20 54 68 65 57 | 68 65 72 65 3a 20 50 6f |le; TheW|here: Po|
|00002ac0| 69 6e 74 29 3a 20 42 6f | 6f 6c 65 61 6e 3b 0d 0d |int): Bo|olean;..|
|00002ad0| 7b 54 75 72 6e 20 6f 66 | 66 20 61 6e 79 20 68 69 |{Turn of|f any hi|
|00002ae0| 6c 69 74 65 64 20 69 74 | 65 6d 2e 7d 0d 20 70 72 |lited it|em.}. pr|
|00002af0| 6f 63 65 64 75 72 65 20 | 54 75 72 6e 4f 66 66 53 |ocedure |TurnOffS|
|00002b00| 65 6c 65 63 74 69 6f 6e | 20 28 54 68 65 4c 69 73 |election| (TheLis|
|00002b10| 74 48 61 6e 64 6c 65 3a | 20 4c 69 73 74 48 61 6e |tHandle:| ListHan|
|00002b20| 64 6c 65 29 3b 0d 0d 7b | 52 65 74 75 72 6e 20 74 |dle);..{|Return t|
|00002b30| 68 65 20 73 74 72 69 6e | 67 20 63 75 72 72 65 6e |he strin|g curren|
|00002b40| 74 6c 79 20 73 65 6c 65 | 63 74 65 64 3b 20 65 6d |tly sele|cted; em|
|00002b50| 70 74 79 20 73 74 72 69 | 6e 67 20 69 66 20 6e 6f |pty stri|ng if no|
|00002b60| 20 73 65 6c 65 63 74 69 | 6f 6e 2e 7d 0d 20 66 75 | selecti|on.}. fu|
|00002b70| 6e 63 74 69 6f 6e 20 4c | 69 73 74 53 65 6c 65 63 |nction L|istSelec|
|00002b80| 74 69 6f 6e 20 28 54 68 | 65 4c 69 73 74 48 61 6e |tion (Th|eListHan|
|00002b90| 64 6c 65 3a 20 4c 69 73 | 74 48 61 6e 64 6c 65 29 |dle: Lis|tHandle)|
|00002ba0| 3a 20 73 74 72 69 6e 67 | 3b 0d 0d 7b 41 64 64 20 |: string|;..{Add |
|00002bb0| 61 20 6e 65 77 20 63 65 | 6c 6c 20 63 6f 6e 74 61 |a new ce|ll conta|
|00002bc0| 69 6e 69 6e 67 20 74 68 | 65 20 73 74 72 69 6e 67 |ining th|e string|
|00002bd0| 20 70 61 72 61 6d 65 74 | 65 72 20 74 6f 20 74 68 | paramet|er to th|
|00002be0| 65 20 65 6e 64 20 6f 66 | 20 74 68 65 20 6c 69 73 |e end of| the lis|
|00002bf0| 74 7d 0d 20 70 72 6f 63 | 65 64 75 72 65 20 41 64 |t}. proc|edure Ad|
|00002c00| 64 43 65 6c 6c 20 28 54 | 68 65 4c 69 73 74 48 61 |dCell (T|heListHa|
|00002c10| 6e 64 6c 65 3a 20 4c 69 | 73 74 48 61 6e 64 6c 65 |ndle: Li|stHandle|
|00002c20| 3b 20 4e 65 77 53 74 72 | 69 6e 67 3a 20 73 74 72 |; NewStr|ing: str|
|00002c30| 32 35 35 29 3b 0d 0d 7b | 43 68 61 6e 67 65 20 74 |255);..{|Change t|
|00002c40| 68 65 20 6e 61 6d 65 20 | 6f 66 20 61 6e 20 65 78 |he name |of an ex|
|00002c50| 69 73 74 69 6e 67 20 63 | 65 6c 6c 7d 0d 20 70 72 |isting c|ell}. pr|
|00002c60| 6f 63 65 64 75 72 65 20 | 52 65 6e 61 6d 65 43 65 |ocedure |RenameCe|
|00002c70| 6c 6c 20 28 54 68 65 4c | 69 73 74 48 61 6e 64 6c |ll (TheL|istHandl|
|00002c80| 65 3a 20 4c 69 73 74 48 | 61 6e 64 6c 65 3b 20 4f |e: ListH|andle; O|
|00002c90| 6c 64 53 74 72 69 6e 67 | 2c 20 4e 65 77 53 74 72 |ldString|, NewStr|
|00002ca0| 69 6e 67 3a 0d 53 74 72 | 32 35 35 29 3b 0d 0d 7b |ing:.Str|255);..{|
|00002cb0| 52 65 6d 6f 76 65 20 74 | 68 65 20 63 65 6c 6c 20 |Remove t|he cell |
|00002cc0| 77 69 74 68 20 74 68 65 | 20 67 69 76 65 6e 20 6e |with the| given n|
|00002cd0| 61 6d 65 20 66 72 6f 6d | 20 74 68 65 20 6c 69 73 |ame from| the lis|
|00002ce0| 74 2e 7d 0d 20 70 72 6f | 63 65 64 75 72 65 20 44 |t.}. pro|cedure D|
|00002cf0| 65 6c 65 74 65 43 65 6c | 6c 20 28 54 68 65 4c 69 |eleteCel|l (TheLi|
|00002d00| 73 74 48 61 6e 64 6c 65 | 3a 20 4c 69 73 74 48 61 |stHandle|: ListHa|
|00002d10| 6e 64 6c 65 3b 20 54 68 | 65 53 74 72 69 6e 67 3a |ndle; Th|eString:|
|00002d20| 20 73 74 72 69 6e 67 29 | 3b 0d 0d 7b 47 65 74 20 | string)|;..{Get |
|00002d30| 72 69 64 20 6f 66 20 74 | 68 65 20 6c 69 73 74 20 |rid of t|he list |
|00002d40| 77 68 65 6e 20 77 65 27 | 72 65 20 64 6f 6e 65 20 |when we'|re done |
|00002d50| 77 69 74 68 20 69 74 2c | 20 63 6c 65 61 6e 69 6e |with it,| cleanin|
|00002d60| 67 20 75 70 20 61 6c 6c | 20 74 68 65 20 6d 65 6d |g up all| the mem|
|00002d70| 6f 72 79 2e 7d 0d 20 70 | 72 6f 63 65 64 75 72 65 |ory.}. p|rocedure|
|00002d80| 20 44 69 73 70 6f 73 4c | 69 73 74 20 28 54 68 65 | DisposL|ist (The|
|00002d90| 4c 69 73 74 48 61 6e 64 | 6c 65 3a 20 4c 69 73 74 |ListHand|le: List|
|00002da0| 48 61 6e 64 6c 65 29 3b | 0d 0d 69 6d 70 6c 65 6d |Handle);|..implem|
|00002db0| 65 6e 74 61 74 69 6f 6e | 0d 0d 20 70 72 6f 63 65 |entation|.. proce|
|00002dc0| 64 75 72 65 20 43 72 65 | 61 74 65 4c 69 73 74 3b |dure Cre|ateList;|
|00002dd0| 0d 20 20 63 6f 6e 73 74 | 0d 20 20 20 53 74 61 6e |. const|. Stan|
|00002de0| 64 61 72 64 4c 69 73 74 | 20 3d 20 30 3b 0d 20 20 |dardList| = 0;. |
|00002df0| 76 61 72 0d 20 20 20 56 | 69 65 77 52 65 63 74 3a |var. V|iewRect:|
|00002e00| 20 52 65 63 74 3b 0d 20 | 20 20 44 61 74 61 42 6f | Rect;. | DataBo|
|00002e10| 75 6e 64 73 3a 20 52 65 | 63 74 3b 0d 20 20 20 43 |unds: Re|ct;. C|
|00002e20| 65 6c 6c 53 69 7a 65 3a | 20 50 6f 69 6e 74 3b 0d |ellSize:| Point;.|
|00002e30| 20 20 20 54 65 6d 70 49 | 6e 74 65 67 65 72 3a 20 | TempI|nteger: |
|00002e40| 49 6e 74 65 67 65 72 3b | 20 20 7b 4a 75 73 74 20 |Integer;| {Just |
|00002e50| 74 6f 20 64 6f 20 61 20 | 6c 69 74 74 6c 65 20 6d |to do a |little m|
|00002e60| 61 74 68 7d 0d 20 62 65 | 67 69 6e 0d 7b 49 6e 73 |ath}. be|gin.{Ins|
|00002e70| 65 74 20 74 68 65 20 62 | 6f 78 20 74 6f 20 6d 61 |et the b|ox to ma|
|00002e80| 6b 65 20 72 6f 6f 6d 20 | 66 6f 72 20 74 68 65 20 |ke room |for the |
|00002e90| 73 63 72 6f 6c 6c 20 62 | 61 72 2e 20 20 41 6c 73 |scroll b|ar. Als|
|00002ea0| 6f 20 69 6e 73 65 74 20 | 69 74 20 73 6f 20 77 65 |o inset |it so we|
|00002eb0| 27 76 65 0d 67 6f 74 20 | 72 6f 6f 6d 20 66 6f 72 |'ve.got |room for|
|00002ec0| 20 61 20 62 6f 72 64 65 | 72 2e 7d 0d 20 20 56 69 | a borde|r.}. Vi|
|00002ed0| 65 77 52 65 63 74 20 3a | 3d 20 54 68 65 52 65 63 |ewRect :|= TheRec|
|00002ee0| 74 3b 0d 20 20 49 6e 73 | 65 74 52 65 63 74 28 56 |t;. Ins|etRect(V|
|00002ef0| 69 65 77 52 65 63 74 2c | 20 31 2c 20 31 29 3b 0d |iewRect,| 1, 1);.|
|00002f00| 20 20 56 69 65 77 52 65 | 63 74 2e 52 69 67 68 74 | ViewRe|ct.Right|
|00002f10| 20 3a 3d 20 56 69 65 77 | 52 65 63 74 2e 52 69 67 | := View|Rect.Rig|
|00002f20| 68 74 20 2d 20 31 35 3b | 0d 7b 53 65 74 20 74 68 |ht - 15;|.{Set th|
|00002f30| 65 20 63 65 6c 6c 20 73 | 69 7a 65 20 74 6f 20 74 |e cell s|ize to t|
|00002f40| 68 65 20 73 69 7a 65 20 | 6f 66 20 74 68 65 20 63 |he size |of the c|
|00002f50| 65 6c 6c 7d 0d 20 20 43 | 65 6c 6c 53 69 7a 65 2e |ell}. C|ellSize.|
|00002f60| 76 20 3a 3d 20 54 68 65 | 57 69 6e 64 6f 77 5e 2e |v := The|Window^.|
|00002f70| 74 78 53 69 7a 65 20 2b | 20 33 3b 0d 20 20 69 66 |txSize +| 3;. if|
|00002f80| 20 43 65 6c 6c 53 69 7a | 65 2e 76 20 3d 20 33 20 | CellSiz|e.v = 3 |
|00002f90| 74 68 65 6e 20 20 7b 49 | 66 20 69 74 20 68 61 73 |then {I|f it has|
|00002fa0| 6e 27 74 20 62 65 65 6e | 20 73 65 74 2c 20 74 68 |n't been| set, th|
|00002fb0| 65 6e 20 6d 61 6b 65 20 | 69 74 20 31 32 20 70 6f |en make |it 12 po|
|00002fc0| 69 6e 74 2e 7d 0d 20 20 | 20 62 65 67 69 6e 0d 20 |int.}. | begin. |
|00002fd0| 20 20 20 54 65 78 74 53 | 69 7a 65 28 31 32 29 3b | TextS|ize(12);|
|00002fe0| 0d 20 20 20 20 43 65 6c | 6c 53 69 7a 65 2e 76 20 |. Cel|lSize.v |
|00002ff0| 3a 3d 20 31 35 3b 0d 20 | 20 20 65 6e 64 3b 0d 20 |:= 15;. | end;. |
|00003000| 20 43 65 6c 6c 53 69 7a | 65 2e 68 20 3a 3d 20 56 | CellSiz|e.h := V|
|00003010| 69 65 77 52 65 63 74 2e | 52 69 67 68 74 20 2d 20 |iewRect.|Right - |
|00003020| 56 69 65 77 52 65 63 74 | 2e 4c 65 66 74 3b 0d 7b |ViewRect|.Left;.{|
|00003030| 4e 6f 77 20 61 64 6a 75 | 73 74 20 74 68 65 20 56 |Now adju|st the V|
|00003040| 69 65 77 52 65 63 74 20 | 74 6f 20 61 76 6f 69 64 |iewRect |to avoid|
|00003050| 20 63 75 74 74 69 6e 67 | 20 6f 66 66 20 74 68 65 | cutting| off the|
|00003060| 20 6c 61 73 74 20 76 69 | 73 69 62 6c 65 20 63 65 | last vi|sible ce|
|00003070| 6c 6c 7d 0d 20 20 54 65 | 6d 70 49 6e 74 65 67 65 |ll}. Te|mpIntege|
|00003080| 72 20 3a 3d 20 28 56 69 | 65 77 52 65 63 74 2e 42 |r := (Vi|ewRect.B|
|00003090| 6f 74 74 6f 6d 20 2d 20 | 56 69 65 77 52 65 63 74 |ottom - |ViewRect|
|000030a0| 2e 54 6f 70 29 20 64 69 | 76 20 43 65 6c 6c 53 69 |.Top) di|v CellSi|
|000030b0| 7a 65 2e 76 3b 0d 20 20 | 56 69 65 77 52 65 63 74 |ze.v;. |ViewRect|
|000030c0| 2e 42 6f 74 74 6f 6d 20 | 3a 3d 20 56 69 65 77 52 |.Bottom |:= ViewR|
|000030d0| 65 63 74 2e 54 6f 70 20 | 2b 20 28 54 65 6d 70 49 |ect.Top |+ (TempI|
|000030e0| 6e 74 65 67 65 72 20 2a | 20 43 65 6c 6c 53 69 7a |nteger *| CellSiz|
|000030f0| 65 2e 76 29 3b 0d 7b 43 | 72 65 61 74 65 20 74 68 |e.v);.{C|reate th|
|00003100| 65 20 6e 65 77 20 6c 69 | 73 74 2e 7d 0d 20 20 53 |e new li|st.}. S|
|00003110| 65 74 52 65 63 74 28 44 | 61 74 61 42 6f 75 6e 64 |etRect(D|ataBound|
|00003120| 73 2c 20 30 2c 20 30 2c | 20 31 2c 20 30 29 3b 0d |s, 0, 0,| 1, 0);.|
|00003130| 20 20 54 68 65 4c 69 73 | 74 48 61 6e 64 6c 65 20 | TheLis|tHandle |
|00003140| 3a 3d 20 4c 4e 65 77 28 | 56 69 65 77 52 65 63 74 |:= LNew(|ViewRect|
|00003150| 2c 20 44 61 74 61 42 6f | 75 6e 64 73 2c 20 43 65 |, DataBo|unds, Ce|
|00003160| 6c 6c 53 69 7a 65 2c 20 | 53 74 61 6e 64 61 72 64 |llSize, |Standard|
|00003170| 4c 69 73 74 2c 0d 54 68 | 65 57 69 6e 64 6f 77 2c |List,.Th|eWindow,|
|00003180| 20 46 41 4c 53 45 2c 20 | 46 41 4c 53 45 2c 20 46 | FALSE, |FALSE, F|
|00003190| 41 4c 53 45 2c 20 54 52 | 55 45 29 3b 0d 20 20 55 |ALSE, TR|UE);. U|
|000031a0| 70 64 61 74 65 4c 69 73 | 74 28 54 68 65 4c 69 73 |pdateLis|t(TheLis|
|000031b0| 74 48 61 6e 64 6c 65 29 | 3b 0d 20 65 6e 64 3b 0d |tHandle)|;. end;.|
|000031c0| 0d 7b 55 70 64 61 74 65 | 20 74 68 65 20 64 69 73 |.{Update| the dis|
|000031d0| 70 6c 61 79 20 6f 66 20 | 61 20 6c 69 73 74 2e 7d |play of |a list.}|
|000031e0| 0d 20 70 72 6f 63 65 64 | 75 72 65 20 55 70 64 61 |. proced|ure Upda|
|000031f0| 74 65 4c 69 73 74 3b 0d | 20 20 76 61 72 0d 20 20 |teList;.| var. |
|00003200| 20 56 69 65 77 52 65 63 | 74 3a 20 52 65 63 74 3b | ViewRec|t: Rect;|
|00003210| 0d 20 20 20 4c 69 73 74 | 55 70 64 61 74 65 52 67 |. List|UpdateRg|
|00003220| 6e 3a 20 52 67 6e 48 61 | 6e 64 6c 65 3b 0d 20 62 |n: RgnHa|ndle;. b|
|00003230| 65 67 69 6e 0d 20 20 53 | 65 74 50 6f 72 74 28 54 |egin. S|etPort(T|
|00003240| 68 65 4c 69 73 74 48 61 | 6e 64 6c 65 5e 5e 2e 50 |heListHa|ndle^^.P|
|00003250| 6f 72 74 29 3b 0d 7b 47 | 65 74 20 74 68 65 20 4c |ort);.{G|et the L|
|00003260| 69 73 74 20 6d 61 6e 61 | 67 65 72 20 74 6f 20 75 |ist mana|ger to u|
|00003270| 70 64 61 74 65 20 74 68 | 65 20 6c 69 73 74 2e 7d |pdate th|e list.}|
|00003280| 0d 20 20 56 69 65 77 52 | 65 63 74 20 3a 3d 20 54 |. ViewR|ect := T|
|00003290| 68 65 4c 69 73 74 48 61 | 6e 64 6c 65 5e 5e 2e 72 |heListHa|ndle^^.r|
|000032a0| 56 69 65 77 3b 0d 20 20 | 4c 44 6f 44 72 61 77 28 |View;. |LDoDraw(|
|000032b0| 74 72 75 65 2c 20 54 68 | 65 4c 69 73 74 48 61 6e |true, Th|eListHan|
|000032c0| 64 6c 65 29 3b 0d 20 20 | 4c 69 73 74 55 70 64 61 |dle);. |ListUpda|
|000032d0| 74 65 52 67 6e 20 3a 3d | 20 4e 65 77 52 67 6e 3b |teRgn :=| NewRgn;|
|000032e0| 0d 20 20 52 65 63 74 52 | 67 6e 28 4c 69 73 74 55 |. RectR|gn(ListU|
|000032f0| 70 64 61 74 65 52 67 6e | 2c 20 56 69 65 77 52 65 |pdateRgn|, ViewRe|
|00003300| 63 74 29 3b 0d 20 20 4c | 55 70 64 61 74 65 28 4c |ct);. L|Update(L|
|00003310| 69 73 74 55 70 64 61 74 | 65 52 67 6e 2c 20 54 68 |istUpdat|eRgn, Th|
|00003320| 65 4c 69 73 74 48 61 6e | 64 6c 65 29 3b 0d 7b 44 |eListHan|dle);.{D|
|00003330| 72 61 77 20 74 68 65 20 | 62 6f 72 64 65 72 7d 0d |raw the |border}.|
|00003340| 20 20 49 6e 73 65 74 52 | 65 63 74 28 56 69 65 77 | InsetR|ect(View|
|00003350| 52 65 63 74 2c 20 2d 31 | 2c 20 2d 31 29 3b 0d 20 |Rect, -1|, -1);. |
|00003360| 20 46 72 61 6d 65 52 65 | 63 74 28 56 69 65 77 52 | FrameRe|ct(ViewR|
|00003370| 65 63 74 29 3b 0d 7b 43 | 6c 65 61 6e 20 75 70 20 |ect);.{C|lean up |
|00003380| 61 66 74 65 72 20 6f 75 | 72 73 65 6c 76 65 73 7d |after ou|rselves}|
|00003390| 0d 20 20 44 69 73 70 6f | 73 65 52 67 6e 28 4c 69 |. Dispo|seRgn(Li|
|000033a0| 73 74 55 70 64 61 74 65 | 52 67 6e 29 3b 0d 20 65 |stUpdate|Rgn);. e|
|000033b0| 6e 64 3b 0d 0d 7b 48 61 | 6e 64 6c 65 20 61 20 63 |nd;..{Ha|ndle a c|
|000033c0| 6c 69 63 6b 20 69 6e 20 | 74 68 65 20 6c 69 73 74 |lick in |the list|
|000033d0| 20 72 65 63 74 61 6e 67 | 6c 65 2e 20 20 49 66 20 | rectang|le. If |
|000033e0| 69 74 20 77 61 73 20 61 | 20 64 6f 75 62 6c 65 2d |it was a| double-|
|000033f0| 63 6c 69 63 6b 2c 20 77 | 65 20 77 69 6c 6c 0d 72 |click, w|e will.r|
|00003400| 65 74 75 72 6e 20 54 52 | 55 45 2e 7d 0d 20 66 75 |eturn TR|UE.}. fu|
|00003410| 6e 63 74 69 6f 6e 20 44 | 6f 43 6c 69 63 6b 3b 0d |nction D|oClick;.|
|00003420| 20 62 65 67 69 6e 0d 20 | 20 53 65 74 50 6f 72 74 | begin. | SetPort|
|00003430| 28 54 68 65 4c 69 73 74 | 48 61 6e 64 6c 65 5e 5e |(TheList|Handle^^|
|00003440| 2e 50 6f 72 74 29 3b 0d | 20 20 4c 44 6f 44 72 61 |.Port);.| LDoDra|
|00003450| 77 28 54 52 55 45 2c 20 | 54 68 65 4c 69 73 74 48 |w(TRUE, |TheListH|
|00003460| 61 6e 64 6c 65 29 3b 0d | 20 20 44 6f 43 6c 69 63 |andle);.| DoClic|
|00003470| 6b 20 3a 3d 20 4c 43 6c | 69 63 6b 28 54 68 65 57 |k := LCl|ick(TheW|
|00003480| 68 65 72 65 2c 20 30 2c | 20 54 68 65 4c 69 73 74 |here, 0,| TheList|
|00003490| 48 61 6e 64 6c 65 29 3b | 0d 20 65 6e 64 3b 0d 0d |Handle);|. end;..|
|000034a0| 7b 54 75 72 6e 20 6f 66 | 66 20 61 6e 79 20 68 69 |{Turn of|f any hi|
|000034b0| 6c 69 74 65 64 20 69 74 | 65 6d 2e 7d 0d 20 70 72 |lited it|em.}. pr|
|000034c0| 6f 63 65 64 75 72 65 20 | 54 75 72 6e 4f 66 66 53 |ocedure |TurnOffS|
|000034d0| 65 6c 65 63 74 69 6f 6e | 3b 0d 20 20 76 61 72 0d |election|;. var.|
|000034e0| 20 20 20 52 65 73 75 6c | 74 50 6f 69 6e 74 3a 20 | Resul|tPoint: |
|000034f0| 50 6f 69 6e 74 3b 0d 20 | 62 65 67 69 6e 0d 20 20 |Point;. |begin. |
|00003500| 53 65 74 50 74 28 52 65 | 73 75 6c 74 50 6f 69 6e |SetPt(Re|sultPoin|
|00003510| 74 2c 20 30 2c 20 30 29 | 3b 0d 20 20 69 66 20 4c |t, 0, 0)|;. if L|
|00003520| 47 65 74 53 65 6c 65 63 | 74 28 54 52 55 45 2c 20 |GetSelec|t(TRUE, |
|00003530| 52 65 73 75 6c 74 50 6f | 69 6e 74 2c 20 54 68 65 |ResultPo|int, The|
|00003540| 4c 69 73 74 48 61 6e 64 | 6c 65 29 20 74 68 65 6e |ListHand|le) then|
|00003550| 0d 20 20 20 4c 53 65 74 | 53 65 6c 65 63 74 28 46 |. LSet|Select(F|
|00003560| 41 4c 53 45 2c 20 52 65 | 73 75 6c 74 50 6f 69 6e |ALSE, Re|sultPoin|
|00003570| 74 2c 20 54 68 65 4c 69 | 73 74 48 61 6e 64 6c 65 |t, TheLi|stHandle|
|00003580| 29 3b 0d 20 65 6e 64 3b | 0d 0d 7b 52 65 74 75 72 |);. end;|..{Retur|
|00003590| 6e 20 74 68 65 20 73 74 | 72 69 6e 67 20 63 75 72 |n the st|ring cur|
|000035a0| 72 65 6e 74 6c 79 20 73 | 65 6c 65 63 74 65 64 3b |rently s|elected;|
|000035b0| 20 65 6d 70 74 79 20 73 | 74 72 69 6e 67 20 69 66 | empty s|tring if|
|000035c0| 20 6e 6f 20 73 65 6c 65 | 63 74 69 6f 6e 2e 7d 0d | no sele|ction.}.|
|000035d0| 20 66 75 6e 63 74 69 6f | 6e 20 4c 69 73 74 53 65 | functio|n ListSe|
|000035e0| 6c 65 63 74 69 6f 6e 3b | 0d 20 20 76 61 72 0d 20 |lection;|. var. |
|000035f0| 20 20 52 65 73 75 6c 74 | 50 6f 69 6e 74 3a 20 50 | Result|Point: P|
|00003600| 6f 69 6e 74 3b 0d 20 20 | 20 52 65 73 75 6c 74 53 |oint;. | ResultS|
|00003610| 74 72 69 6e 67 3a 20 53 | 74 72 32 35 35 3b 0d 20 |tring: S|tr255;. |
|00003620| 20 20 53 74 72 69 6e 67 | 50 6f 69 6e 74 65 72 3a | String|Pointer:|
|00003630| 20 50 74 72 3b 0d 20 20 | 20 53 74 72 69 6e 67 4c | Ptr;. | StringL|
|00003640| 65 6e 67 74 68 3a 20 49 | 6e 74 65 67 65 72 3b 0d |ength: I|nteger;.|
|00003650| 20 62 65 67 69 6e 0d 20 | 20 53 65 74 50 74 28 52 | begin. | SetPt(R|
|00003660| 65 73 75 6c 74 50 6f 69 | 6e 74 2c 20 30 2c 20 30 |esultPoi|nt, 0, 0|
|00003670| 29 3b 0d 20 20 69 66 20 | 4c 47 65 74 53 65 6c 65 |);. if |LGetSele|
|00003680| 63 74 28 54 52 55 45 2c | 20 52 65 73 75 6c 74 50 |ct(TRUE,| ResultP|
|00003690| 6f 69 6e 74 2c 20 54 68 | 65 4c 69 73 74 48 61 6e |oint, Th|eListHan|
|000036a0| 64 6c 65 29 20 74 68 65 | 6e 0d 7b 49 66 20 74 68 |dle) the|n.{If th|
|000036b0| 65 72 65 20 69 73 20 61 | 20 63 65 6c 6c 20 73 65 |ere is a| cell se|
|000036c0| 6c 65 63 74 65 64 2c 20 | 74 68 65 6e 20 67 65 74 |lected, |then get|
|000036d0| 20 74 68 65 20 73 74 72 | 69 6e 67 20 76 61 6c 75 | the str|ing valu|
|000036e0| 65 20 6f 66 20 74 68 61 | 74 20 73 74 72 69 6e 67 |e of tha|t string|
|000036f0| 2e 20 0d 54 68 65 72 65 | 20 6f 75 67 68 74 20 74 |. .There| ought t|
|00003700| 6f 20 62 65 20 61 6e 7d | 0d 7b 65 61 73 69 65 72 |o be an}|.{easier|
|00003710| 20 77 61 79 20 74 6f 20 | 64 6f 20 74 68 69 73 20 | way to |do this |
|00003720| 74 68 61 6e 20 6d 75 63 | 6b 69 6e 67 20 61 72 6f |than muc|king aro|
|00003730| 75 6e 64 20 69 6e 20 74 | 68 65 20 6d 65 6d 6f 72 |und in t|he memor|
|00003740| 79 20 6c 69 6b 65 20 74 | 68 69 73 2e 20 20 3e 3a |y like t|his. >:|
|00003750| 2d 28 20 0d 20 20 7d 0d | 20 20 20 62 65 67 69 6e |-( . }.| begin|
|00003760| 20 20 7b 49 66 20 74 68 | 65 72 65 20 69 73 20 61 | {If th|ere is a|
|00003770| 20 63 65 6c 6c 20 73 65 | 6c 65 63 74 65 64 2c 20 | cell se|lected, |
|00003780| 74 68 65 6e 20 72 65 74 | 75 72 6e 20 74 68 65 20 |then ret|urn the |
|00003790| 73 74 72 69 6e 67 20 6f | 66 20 74 68 65 20 63 65 |string o|f the ce|
|000037a0| 6c 6c 2e 7d 0d 20 20 20 | 20 53 74 72 69 6e 67 50 |ll.}. | StringP|
|000037b0| 6f 69 6e 74 65 72 20 3a | 3d 20 50 74 72 28 4f 72 |ointer :|= Ptr(Or|
|000037c0| 64 28 40 52 65 73 75 6c | 74 53 74 72 69 6e 67 29 |d(@Resul|tString)|
|000037d0| 20 2b 20 31 29 3b 0d 20 | 20 20 20 53 74 72 69 6e | + 1);. | Strin|
|000037e0| 67 4c 65 6e 67 74 68 20 | 3a 3d 20 32 35 35 3b 20 |gLength |:= 255; |
|000037f0| 20 7b 54 68 69 73 20 69 | 73 20 74 68 65 20 6d 61 | {This i|s the ma|
|00003800| 78 69 6d 75 6d 20 61 6d | 6f 75 6e 74 20 6f 66 20 |ximum am|ount of |
|00003810| 64 61 74 61 20 77 65 20 | 61 72 65 0d 61 6c 6c 6f |data we |are.allo|
|00003820| 77 65 64 20 74 6f 20 6d | 6f 76 65 2e 7d 0d 20 20 |wed to m|ove.}. |
|00003830| 20 20 4c 47 65 74 43 65 | 6c 6c 28 53 74 72 69 6e | LGetCe|ll(Strin|
|00003840| 67 50 6f 69 6e 74 65 72 | 2c 20 53 74 72 69 6e 67 |gPointer|, String|
|00003850| 4c 65 6e 67 74 68 2c 20 | 52 65 73 75 6c 74 50 6f |Length, |ResultPo|
|00003860| 69 6e 74 2c 20 54 68 65 | 4c 69 73 74 48 61 6e 64 |int, The|ListHand|
|00003870| 6c 65 29 3b 0d 20 20 20 | 20 53 74 72 69 6e 67 50 |le);. | StringP|
|00003880| 6f 69 6e 74 65 72 20 3a | 3d 20 50 74 72 28 4f 72 |ointer :|= Ptr(Or|
|00003890| 64 28 40 52 65 73 75 6c | 74 53 74 72 69 6e 67 29 |d(@Resul|tString)|
|000038a0| 29 3b 0d 20 20 20 20 53 | 74 72 69 6e 67 50 6f 69 |);. S|tringPoi|
|000038b0| 6e 74 65 72 5e 20 3a 3d | 20 53 74 72 69 6e 67 4c |nter^ :=| StringL|
|000038c0| 65 6e 67 74 68 3b 0d 20 | 20 20 20 4c 69 73 74 53 |ength;. | ListS|
|000038d0| 65 6c 65 63 74 69 6f 6e | 20 3a 3d 20 52 65 73 75 |election| := Resu|
|000038e0| 6c 74 53 74 72 69 6e 67 | 3b 0d 20 20 20 65 6e 64 |ltString|;. end|
|000038f0| 0d 20 20 65 6c 73 65 20 | 20 7b 4f 74 68 65 72 77 |. else | {Otherw|
|00003900| 69 73 65 2c 20 72 65 74 | 75 72 6e 20 74 68 65 20 |ise, ret|urn the |
|00003910| 65 6d 70 74 79 20 73 74 | 72 69 6e 67 20 74 6f 20 |empty st|ring to |
|00003920| 73 68 6f 77 20 74 68 61 | 74 20 6e 6f 74 68 69 6e |show tha|t nothin|
|00003930| 67 20 69 73 20 73 65 6c | 65 63 74 65 64 2e 7d 0d |g is sel|ected.}.|
|00003940| 20 20 20 4c 69 73 74 53 | 65 6c 65 63 74 69 6f 6e | ListS|election|
|00003950| 20 3a 3d 20 27 27 3b 0d | 20 65 6e 64 3b 0d 0d 7b | := '';.| end;..{|
|00003960| 41 64 64 20 61 20 6e 65 | 77 20 63 65 6c 6c 20 63 |Add a ne|w cell c|
|00003970| 6f 6e 74 61 69 6e 69 6e | 67 20 74 68 65 20 73 74 |ontainin|g the st|
|00003980| 72 69 6e 67 20 70 61 72 | 61 6d 65 74 65 72 20 74 |ring par|ameter t|
|00003990| 6f 20 74 68 65 20 65 6e | 64 20 6f 66 20 74 68 65 |o the en|d of the|
|000039a0| 20 6c 69 73 74 7d 0d 20 | 70 72 6f 63 65 64 75 72 | list}. |procedur|
|000039b0| 65 20 41 64 64 43 65 6c | 6c 3b 0d 20 20 76 61 72 |e AddCel|l;. var|
|000039c0| 0d 20 20 20 43 6f 75 6e | 74 65 72 3a 20 49 6e 74 |. Coun|ter: Int|
|000039d0| 65 67 65 72 3b 0d 20 20 | 20 43 65 6c 6c 50 6f 69 |eger;. | CellPoi|
|000039e0| 6e 74 3a 20 50 6f 69 6e | 74 3b 0d 20 20 20 4f 6c |nt: Poin|t;. Ol|
|000039f0| 64 53 74 72 69 6e 67 3a | 20 53 74 72 32 35 35 3b |dString:| Str255;|
|00003a00| 0d 20 20 20 43 6f 6d 70 | 52 65 73 75 6c 74 3a 20 |. Comp|Result: |
|00003a10| 49 6e 74 65 67 65 72 3b | 0d 20 20 20 53 74 72 69 |Integer;|. Stri|
|00003a20| 6e 67 4c 65 6e 67 74 68 | 3a 20 49 6e 74 65 67 65 |ngLength|: Intege|
|00003a30| 72 3b 0d 20 20 20 53 74 | 72 69 6e 67 50 6f 69 6e |r;. St|ringPoin|
|00003a40| 74 65 72 3a 20 50 74 72 | 3b 0d 20 20 20 64 6f 6e |ter: Ptr|;. don|
|00003a50| 65 3a 20 42 6f 6f 6c 65 | 61 6e 3b 0d 20 62 65 67 |e: Boole|an;. beg|
|00003a60| 69 6e 0d 7b 53 74 65 70 | 20 31 3a 20 20 43 69 72 |in.{Step| 1: Cir|
|00003a70| 63 6c 65 20 74 68 72 6f | 75 67 68 20 74 68 65 20 |cle thro|ugh the |
|00003a80| 6c 6f 6f 70 20 61 6e 64 | 20 66 69 67 75 72 65 20 |loop and| figure |
|00003a90| 6f 75 74 20 77 68 65 72 | 65 20 77 65 20 73 68 6f |out wher|e we sho|
|00003aa0| 75 6c 64 20 69 6e 73 65 | 72 74 0d 74 68 65 20 6e |uld inse|rt.the n|
|00003ab0| 65 77 7d 0d 7b 63 65 6c | 6c 2e 20 20 57 65 20 64 |ew}.{cel|l. We d|
|00003ac0| 6f 20 74 68 69 73 20 74 | 6f 20 70 75 74 20 74 68 |o this t|o put th|
|00003ad0| 65 20 6c 69 73 74 20 69 | 6e 20 61 6c 70 68 61 62 |e list i|n alphab|
|00003ae0| 65 74 69 63 61 6c 20 6f | 72 64 65 72 2c 20 61 6e |etical o|rder, an|
|00003af0| 64 20 74 6f 20 6b 65 65 | 70 20 69 74 0d 74 68 61 |d to kee|p it.tha|
|00003b00| 74 20 77 61 79 20 61 73 | 7d 0d 7b 6e 65 77 20 69 |t way as|}.{new i|
|00003b10| 74 65 6d 73 20 61 72 65 | 20 61 64 64 65 64 2e 7d |tems are| added.}|
|00003b20| 0d 20 20 43 65 6c 6c 50 | 6f 69 6e 74 2e 68 20 3a |. CellP|oint.h :|
|00003b30| 3d 20 30 3b 0d 20 20 43 | 65 6c 6c 50 6f 69 6e 74 |= 0;. C|ellPoint|
|00003b40| 2e 76 20 3a 3d 20 30 3b | 0d 20 20 44 6f 6e 65 20 |.v := 0;|. Done |
|00003b50| 3a 3d 20 66 61 6c 73 65 | 3b 0d 20 20 77 68 69 6c |:= false|;. whil|
|00003b60| 65 20 6e 6f 74 20 64 6f | 6e 65 20 64 6f 0d 20 20 |e not do|ne do. |
|00003b70| 20 62 65 67 69 6e 0d 20 | 20 20 20 69 66 20 4c 4e | begin. | if LN|
|00003b80| 65 78 74 43 65 6c 6c 28 | 54 52 55 45 2c 20 54 52 |extCell(|TRUE, TR|
|00003b90| 55 45 2c 20 43 65 6c 6c | 50 6f 69 6e 74 2c 20 54 |UE, Cell|Point, T|
|00003ba0| 68 65 4c 69 73 74 48 61 | 6e 64 6c 65 29 20 74 68 |heListHa|ndle) th|
|00003bb0| 65 6e 0d 20 20 20 20 20 | 62 65 67 69 6e 0d 20 20 |en. |begin. |
|00003bc0| 20 20 20 20 53 74 72 69 | 6e 67 50 6f 69 6e 74 65 | Stri|ngPointe|
|00003bd0| 72 20 3a 3d 20 50 74 72 | 28 4f 72 64 28 40 4f 6c |r := Ptr|(Ord(@Ol|
|00003be0| 64 53 74 72 69 6e 67 29 | 20 2b 20 31 29 3b 0d 20 |dString)| + 1);. |
|00003bf0| 20 20 20 20 20 53 74 72 | 69 6e 67 4c 65 6e 67 74 | Str|ingLengt|
|00003c00| 68 20 3a 3d 20 32 35 35 | 3b 20 20 7b 54 68 69 73 |h := 255|; {This|
|00003c10| 20 69 73 20 74 68 65 20 | 6d 61 78 69 6d 75 6d 20 | is the |maximum |
|00003c20| 61 6d 6f 75 6e 74 20 6f | 66 20 64 61 74 61 20 77 |amount o|f data w|
|00003c30| 65 20 61 72 65 0d 61 6c | 6c 6f 77 65 64 20 74 6f |e are.al|lowed to|
|00003c40| 20 6d 6f 76 65 2e 7d 0d | 20 20 20 20 20 20 4c 47 | move.}.| LG|
|00003c50| 65 74 43 65 6c 6c 28 53 | 74 72 69 6e 67 50 6f 69 |etCell(S|tringPoi|
|00003c60| 6e 74 65 72 2c 20 53 74 | 72 69 6e 67 4c 65 6e 67 |nter, St|ringLeng|
|00003c70| 74 68 2c 20 43 65 6c 6c | 50 6f 69 6e 74 2c 20 54 |th, Cell|Point, T|
|00003c80| 68 65 4c 69 73 74 48 61 | 6e 64 6c 65 29 3b 0d 20 |heListHa|ndle);. |
|00003c90| 20 20 20 20 20 53 74 72 | 69 6e 67 50 6f 69 6e 74 | Str|ingPoint|
|00003ca0| 65 72 20 3a 3d 20 50 74 | 72 28 4f 72 64 28 40 4f |er := Pt|r(Ord(@O|
|00003cb0| 6c 64 53 74 72 69 6e 67 | 29 29 3b 0d 20 20 20 20 |ldString|));. |
|00003cc0| 20 20 53 74 72 69 6e 67 | 50 6f 69 6e 74 65 72 5e | String|Pointer^|
|00003cd0| 20 3a 3d 20 53 74 72 69 | 6e 67 4c 65 6e 67 74 68 | := Stri|ngLength|
|00003ce0| 3b 0d 7b 4e 6f 77 2c 20 | 63 6f 6d 70 61 72 65 20 |;.{Now, |compare |
|00003cf0| 74 68 65 20 6e 65 77 20 | 73 74 72 69 6e 67 20 77 |the new |string w|
|00003d00| 69 74 68 20 74 68 65 20 | 63 6f 6e 74 65 6e 74 73 |ith the |contents|
|00003d10| 20 6f 66 20 74 68 65 20 | 63 65 6c 6c 20 61 6e 64 | of the |cell and|
|00003d20| 20 64 65 63 69 64 65 0d | 77 68 65 74 68 65 72 20 | decide.|whether |
|00003d30| 74 68 65 20 6e 65 77 20 | 73 74 72 69 6e 67 7d 0d |the new |string}.|
|00003d40| 7b 73 68 6f 75 6c 64 20 | 63 6f 6d 65 20 62 65 66 |{should |come bef|
|00003d50| 6f 72 65 20 6f 72 20 61 | 66 74 65 72 20 74 68 69 |ore or a|fter thi|
|00003d60| 73 20 63 65 6c 6c 2e 7d | 0d 20 20 20 20 20 20 43 |s cell.}|. C|
|00003d70| 6f 6d 70 52 65 73 75 6c | 74 20 3a 3d 20 52 65 6c |ompResul|t := Rel|
|00003d80| 53 74 72 69 6e 67 28 4e | 65 77 53 74 72 69 6e 67 |String(N|ewString|
|00003d90| 2c 20 4f 6c 64 53 74 72 | 69 6e 67 2c 20 66 61 6c |, OldStr|ing, fal|
|00003da0| 73 65 2c 20 74 72 75 65 | 29 3b 0d 20 20 20 20 20 |se, true|);. |
|00003db0| 20 63 61 73 65 20 43 6f | 6d 70 52 65 73 75 6c 74 | case Co|mpResult|
|00003dc0| 20 6f 66 0d 20 20 20 20 | 20 20 20 73 6f 72 74 73 | of. | sorts|
|00003dd0| 42 65 66 6f 72 65 2c 20 | 73 6f 72 74 73 45 71 75 |Before, |sortsEqu|
|00003de0| 61 6c 3a 20 0d 20 20 20 | 20 20 20 20 64 6f 6e 65 |al: . | done|
|00003df0| 20 3a 3d 20 74 72 75 65 | 3b 0d 20 20 20 20 20 20 | := true|;. |
|00003e00| 20 53 6f 72 74 73 41 66 | 74 65 72 3a 20 0d 20 20 | SortsAf|ter: . |
|00003e10| 20 20 20 20 20 3b 0d 20 | 20 20 20 20 20 65 6e 64 | ;. | end|
|00003e20| 3b 0d 20 20 20 20 20 65 | 6e 64 0d 20 20 20 20 65 |;. e|nd. e|
|00003e30| 6c 73 65 0d 7b 54 68 65 | 72 65 20 61 72 65 20 6e |lse.{The|re are n|
|00003e40| 6f 20 6d 6f 72 65 20 72 | 6f 77 73 2c 20 73 6f 20 |o more r|ows, so |
|00003e50| 74 68 61 74 27 73 20 61 | 6c 6c 2e 7d 0d 20 20 20 |that's a|ll.}. |
|00003e60| 20 20 62 65 67 69 6e 0d | 20 20 20 20 20 20 64 6f | begin.| do|
|00003e70| 6e 65 20 3a 3d 20 74 72 | 75 65 3b 0d 20 20 20 20 |ne := tr|ue;. |
|00003e80| 20 65 6e 64 3b 0d 20 20 | 20 65 6e 64 3b 0d 0d 7b | end;. | end;..{|
|00003e90| 41 64 64 20 74 68 65 20 | 6e 65 77 20 72 6f 77 20 |Add the |new row |
|00003ea0| 61 74 20 74 68 65 20 74 | 6f 70 20 6f 66 20 74 68 |at the t|op of th|
|00003eb0| 65 20 6c 69 73 74 2e 7d | 0d 20 20 43 65 6c 6c 50 |e list.}|. CellP|
|00003ec0| 6f 69 6e 74 2e 76 20 3a | 3d 20 4c 41 64 64 52 6f |oint.v :|= LAddRo|
|00003ed0| 77 28 31 2c 20 43 65 6c | 6c 50 6f 69 6e 74 2e 76 |w(1, Cel|lPoint.v|
|00003ee0| 2c 20 54 68 65 4c 69 73 | 74 48 61 6e 64 6c 65 29 |, TheLis|tHandle)|
|00003ef0| 3b 0d 7b 50 75 74 20 74 | 68 65 20 73 74 72 69 6e |;.{Put t|he strin|
|00003f00| 67 20 69 6e 74 6f 20 74 | 68 65 20 63 65 6c 6c 2e |g into t|he cell.|
|00003f10| 20 20 4f 6e 63 65 20 61 | 67 61 69 6e 2c 20 74 68 | Once a|gain, th|
|00003f20| 65 72 65 20 6f 75 67 68 | 74 20 74 6f 20 62 65 20 |ere ough|t to be |
|00003f30| 61 6e 20 65 61 73 69 65 | 72 0d 77 61 79 20 74 6f |an easie|r.way to|
|00003f40| 20 64 6f 20 74 68 69 73 | 2e 7d 0d 20 20 4c 53 65 | do this|.}. LSe|
|00003f50| 74 43 65 6c 6c 28 50 6f | 69 6e 74 65 72 28 4f 72 |tCell(Po|inter(Or|
|00003f60| 64 28 40 4e 65 77 53 74 | 72 69 6e 67 29 20 2b 20 |d(@NewSt|ring) + |
|00003f70| 31 29 2c 20 4c 65 6e 67 | 74 68 28 4e 65 77 53 74 |1), Leng|th(NewSt|
|00003f80| 72 69 6e 67 29 2c 20 43 | 65 6c 6c 50 6f 69 6e 74 |ring), C|ellPoint|
|00003f90| 2c 0d 54 68 65 4c 69 73 | 74 48 61 6e 64 6c 65 29 |,.TheLis|tHandle)|
|00003fa0| 3b 0d 20 65 6e 64 3b 0d | 0d 0d 20 70 72 6f 63 65 |;. end;.|.. proce|
|00003fb0| 64 75 72 65 20 52 65 6e | 61 6d 65 43 65 6c 6c 3b |dure Ren|ameCell;|
|00003fc0| 0d 20 20 76 61 72 0d 20 | 20 20 43 65 6c 6c 50 6f |. var. | CellPo|
|00003fd0| 69 6e 74 3a 20 50 6f 69 | 6e 74 3b 0d 20 20 20 44 |int: Poi|nt;. D|
|00003fe0| 61 74 61 50 74 72 3a 20 | 50 74 72 3b 0d 20 20 20 |ataPtr: |Ptr;. |
|00003ff0| 44 61 74 61 4c 65 6e 3a | 20 49 6e 74 65 67 65 72 |DataLen:| Integer|
|00004000| 3b 0d 20 62 65 67 69 6e | 0d 20 20 53 65 74 50 74 |;. begin|. SetPt|
|00004010| 28 43 65 6c 6c 50 6f 69 | 6e 74 2c 20 30 2c 20 30 |(CellPoi|nt, 0, 0|
|00004020| 29 3b 0d 20 20 44 61 74 | 61 50 74 72 20 3a 3d 20 |);. Dat|aPtr := |
|00004030| 50 6f 69 6e 74 65 72 28 | 4f 72 64 28 40 4f 6c 64 |Pointer(|Ord(@Old|
|00004040| 53 74 72 69 6e 67 29 20 | 2b 20 31 29 3b 0d 20 20 |String) |+ 1);. |
|00004050| 64 61 74 61 4c 65 6e 20 | 3a 3d 20 4c 65 6e 67 74 |dataLen |:= Lengt|
|00004060| 68 28 4f 6c 64 53 74 72 | 69 6e 67 29 3b 0d 20 20 |h(OldStr|ing);. |
|00004070| 69 66 20 4c 53 65 61 72 | 63 68 28 64 61 74 61 50 |if LSear|ch(dataP|
|00004080| 74 72 2c 20 64 61 74 61 | 4c 65 6e 2c 20 6e 69 6c |tr, data|Len, nil|
|00004090| 2c 20 43 65 6c 6c 50 6f | 69 6e 74 2c 20 54 68 65 |, CellPo|int, The|
|000040a0| 4c 69 73 74 48 61 6e 64 | 6c 65 29 20 74 68 65 6e |ListHand|le) then|
|000040b0| 0d 20 20 20 62 65 67 69 | 6e 0d 20 20 20 20 44 61 |. begi|n. Da|
|000040c0| 74 61 50 74 72 20 3a 3d | 20 50 6f 69 6e 74 65 72 |taPtr :=| Pointer|
|000040d0| 28 4f 72 64 28 40 4e 65 | 77 53 74 72 69 6e 67 29 |(Ord(@Ne|wString)|
|000040e0| 20 2b 20 31 29 3b 0d 20 | 20 20 20 64 61 74 61 4c | + 1);. | dataL|
|000040f0| 65 6e 20 3a 3d 20 4c 65 | 6e 67 74 68 28 4e 65 77 |en := Le|ngth(New|
|00004100| 53 74 72 69 6e 67 29 3b | 0d 20 20 20 20 4c 53 65 |String);|. LSe|
|00004110| 74 43 65 6c 6c 28 44 61 | 74 61 50 74 72 2c 20 64 |tCell(Da|taPtr, d|
|00004120| 61 74 61 4c 65 6e 2c 20 | 43 65 6c 6c 50 6f 69 6e |ataLen, |CellPoin|
|00004130| 74 2c 20 54 68 65 4c 69 | 73 74 48 61 6e 64 6c 65 |t, TheLi|stHandle|
|00004140| 29 3b 0d 20 20 20 65 6e | 64 0d 20 20 65 6c 73 65 |);. en|d. else|
|00004150| 0d 20 20 20 62 65 67 69 | 6e 0d 7b 54 68 65 20 70 |. begi|n.{The p|
|00004160| 72 6f 67 72 61 6d 6d 65 | 72 20 61 73 6b 65 64 20 |rogramme|r asked |
|00004170| 75 73 20 74 6f 20 72 65 | 6e 61 6d 65 20 61 20 63 |us to re|name a c|
|00004180| 65 6c 6c 20 77 68 69 63 | 68 20 64 6f 65 73 6e 27 |ell whic|h doesn'|
|00004190| 74 20 65 78 69 73 74 2e | 20 20 57 65 27 6c 6c 20 |t exist.| We'll |
|000041a0| 6a 75 73 74 0d 62 65 65 | 70 20 61 6e 67 72 69 6c |just.bee|p angril|
|000041b0| 79 7d 0d 7b 74 68 72 65 | 65 20 74 69 6d 65 73 2e |y}.{thre|e times.|
|000041c0| 20 20 49 74 27 73 20 74 | 68 65 20 70 72 6f 67 72 | It's t|he progr|
|000041d0| 61 6d 6d 65 72 27 73 20 | 72 65 73 70 6f 6e 73 69 |ammer's |responsi|
|000041e0| 62 69 6c 69 74 79 20 74 | 6f 20 73 65 65 20 74 68 |bility t|o see th|
|000041f0| 61 74 20 74 68 65 20 63 | 65 6c 6c 0d 69 6e 20 71 |at the c|ell.in q|
|00004200| 75 65 73 74 69 6f 6e 20 | 61 63 74 75 61 6c 6c 79 |uestion |actually|
|00004210| 7d 0d 7b 64 6f 65 73 20 | 65 78 69 73 74 20 62 65 |}.{does |exist be|
|00004220| 66 6f 72 65 20 63 61 6c | 6c 69 6e 67 20 74 68 69 |fore cal|ling thi|
|00004230| 73 20 72 6f 75 74 69 6e | 65 2e 7d 0d 20 20 20 20 |s routin|e.}. |
|00004240| 53 79 73 62 65 65 70 28 | 31 29 3b 0d 20 20 20 20 |Sysbeep(|1);. |
|00004250| 53 79 73 62 65 65 70 28 | 31 29 3b 0d 20 20 20 20 |Sysbeep(|1);. |
|00004260| 53 79 73 62 65 65 70 28 | 31 29 3b 0d 20 20 20 65 |Sysbeep(|1);. e|
|00004270| 6e 64 3b 0d 20 65 6e 64 | 3b 0d 0d 0d 7b 52 65 6d |nd;. end|;...{Rem|
|00004280| 6f 76 65 20 74 68 65 20 | 63 65 6c 6c 20 77 69 74 |ove the |cell wit|
|00004290| 68 20 74 68 65 20 67 69 | 76 65 6e 20 6e 61 6d 65 |h the gi|ven name|
|000042a0| 20 66 72 6f 6d 20 74 68 | 65 20 6c 69 73 74 2e 7d | from th|e list.}|
|000042b0| 0d 20 70 72 6f 63 65 64 | 75 72 65 20 44 65 6c 65 |. proced|ure Dele|
|000042c0| 74 65 43 65 6c 6c 3b 0d | 20 20 76 61 72 0d 20 20 |teCell;.| var. |
|000042d0| 20 43 65 6c 6c 50 6f 69 | 6e 74 3a 20 50 6f 69 6e | CellPoi|nt: Poin|
|000042e0| 74 3b 0d 20 20 20 44 61 | 74 61 50 74 72 3a 20 50 |t;. Da|taPtr: P|
|000042f0| 74 72 3b 0d 20 20 20 44 | 61 74 61 4c 65 6e 3a 20 |tr;. D|ataLen: |
|00004300| 49 6e 74 65 67 65 72 3b | 0d 20 62 65 67 69 6e 0d |Integer;|. begin.|
|00004310| 20 20 53 65 74 50 74 28 | 43 65 6c 6c 50 6f 69 6e | SetPt(|CellPoin|
|00004320| 74 2c 20 30 2c 20 30 29 | 3b 0d 20 20 44 61 74 61 |t, 0, 0)|;. Data|
|00004330| 50 74 72 20 3a 3d 20 50 | 6f 69 6e 74 65 72 28 4f |Ptr := P|ointer(O|
|00004340| 72 64 28 40 54 68 65 53 | 74 72 69 6e 67 29 20 2b |rd(@TheS|tring) +|
|00004350| 20 31 29 3b 0d 20 20 64 | 61 74 61 4c 65 6e 20 3a | 1);. d|ataLen :|
|00004360| 3d 20 4c 65 6e 67 74 68 | 28 54 68 65 53 74 72 69 |= Length|(TheStri|
|00004370| 6e 67 29 3b 0d 20 20 69 | 66 20 4c 53 65 61 72 63 |ng);. i|f LSearc|
|00004380| 68 28 64 61 74 61 50 74 | 72 2c 20 64 61 74 61 4c |h(dataPt|r, dataL|
|00004390| 65 6e 2c 20 6e 69 6c 2c | 20 43 65 6c 6c 50 6f 69 |en, nil,| CellPoi|
|000043a0| 6e 74 2c 20 54 68 65 4c | 69 73 74 48 61 6e 64 6c |nt, TheL|istHandl|
|000043b0| 65 29 20 74 68 65 6e 0d | 20 20 20 62 65 67 69 6e |e) then.| begin|
|000043c0| 0d 20 20 20 20 4c 44 65 | 6c 52 6f 77 28 31 2c 20 |. LDe|lRow(1, |
|000043d0| 43 65 6c 6c 50 6f 69 6e | 74 2e 76 2c 20 54 68 65 |CellPoin|t.v, The|
|000043e0| 4c 69 73 74 48 61 6e 64 | 6c 65 29 3b 0d 20 20 20 |ListHand|le);. |
|000043f0| 65 6e 64 0d 20 20 65 6c | 73 65 0d 20 20 20 62 65 |end. el|se. be|
|00004400| 67 69 6e 0d 7b 54 68 65 | 20 70 72 6f 67 72 61 6d |gin.{The| program|
|00004410| 6d 65 72 20 61 73 6b 65 | 64 20 75 73 20 74 6f 20 |mer aske|d us to |
|00004420| 64 65 6c 65 74 65 20 61 | 20 63 65 6c 6c 20 77 68 |delete a| cell wh|
|00004430| 69 63 68 20 64 6f 65 73 | 6e 27 74 20 65 78 69 73 |ich does|n't exis|
|00004440| 74 2e 20 20 57 65 27 6c | 6c 20 6a 75 73 74 0d 62 |t. We'l|l just.b|
|00004450| 65 65 70 20 61 6e 67 72 | 69 6c 79 7d 0d 7b 74 68 |eep angr|ily}.{th|
|00004460| 72 65 65 20 74 69 6d 65 | 73 2e 20 20 49 74 27 73 |ree time|s. It's|
|00004470| 20 74 68 65 20 70 72 6f | 67 72 61 6d 6d 65 72 27 | the pro|grammer'|
|00004480| 73 20 72 65 73 70 6f 6e | 73 69 62 69 6c 69 74 79 |s respon|sibility|
|00004490| 20 74 6f 20 73 65 65 20 | 74 68 61 74 20 74 68 65 | to see |that the|
|000044a0| 20 63 65 6c 6c 0d 69 6e | 20 71 75 65 73 74 69 6f | cell.in| questio|
|000044b0| 6e 20 61 63 74 75 61 6c | 6c 79 7d 0d 7b 64 6f 65 |n actual|ly}.{doe|
|000044c0| 73 20 65 78 69 73 74 20 | 62 65 66 6f 72 65 20 63 |s exist |before c|
|000044d0| 61 6c 6c 69 6e 67 20 74 | 68 69 73 20 72 6f 75 74 |alling t|his rout|
|000044e0| 69 6e 65 2e 7d 0d 20 20 | 20 20 53 79 73 62 65 65 |ine.}. | Sysbee|
|000044f0| 70 28 31 29 3b 0d 20 20 | 20 20 53 79 73 62 65 65 |p(1);. | Sysbee|
|00004500| 70 28 31 29 3b 0d 20 20 | 20 20 53 79 73 62 65 65 |p(1);. | Sysbee|
|00004510| 70 28 31 29 3b 0d 20 20 | 20 65 6e 64 3b 0d 20 65 |p(1);. | end;. e|
|00004520| 6e 64 3b 0d 0d 7b 47 65 | 74 20 72 69 64 20 6f 66 |nd;..{Ge|t rid of|
|00004530| 20 74 68 65 20 6c 69 73 | 74 20 77 68 65 6e 20 77 | the lis|t when w|
|00004540| 65 27 72 65 20 64 6f 6e | 65 20 77 69 74 68 20 69 |e're don|e with i|
|00004550| 74 2c 20 63 6c 65 61 6e | 69 6e 67 20 75 70 20 61 |t, clean|ing up a|
|00004560| 6c 6c 20 74 68 65 20 6d | 65 6d 6f 72 79 2e 7d 0d |ll the m|emory.}.|
|00004570| 20 70 72 6f 63 65 64 75 | 72 65 20 44 69 73 70 6f | procedu|re Dispo|
|00004580| 73 4c 69 73 74 3b 0d 20 | 62 65 67 69 6e 0d 20 20 |sList;. |begin. |
|00004590| 4c 44 69 73 70 6f 73 65 | 28 54 68 65 4c 69 73 74 |LDispose|(TheList|
|000045a0| 48 61 6e 64 6c 65 29 3b | 0d 20 65 6e 64 3b 0d 0d |Handle);|. end;..|
|000045b0| 0d 65 6e 64 2e 0d 0d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |.end...-|--------|
|000045c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000045d0| 2d 2d 0d 0d 46 72 6f 6d | 3a 20 74 6f 6d 63 40 6f |--..From|: tomc@o|
|000045e0| 61 6b 68 69 6c 6c 2e 73 | 70 73 2e 6d 6f 74 2e 63 |akhill.s|ps.mot.c|
|000045f0| 6f 6d 20 28 54 6f 6d 20 | 43 75 6e 6e 69 6e 67 68 |om (Tom |Cunningh|
|00004600| 61 6d 29 0d 53 75 62 6a | 65 63 74 3a 20 4e 65 65 |am).Subj|ect: Nee|
|00004610| 64 20 73 61 6d 70 6c 65 | 20 63 6f 64 65 20 6f 66 |d sample| code of|
|00004620| 20 4d 50 57 20 74 6f 6f | 6c 20 75 73 69 6e 67 20 | MPW too|l using |
|00004630| 41 70 70 6c 65 20 45 76 | 65 6e 74 73 0d 44 61 74 |Apple Ev|ents.Dat|
|00004640| 65 3a 20 31 37 20 53 65 | 70 20 39 32 20 31 38 3a |e: 17 Se|p 92 18:|
|00004650| 31 38 3a 31 39 20 47 4d | 54 0d 4f 72 67 61 6e 69 |18:19 GM|T.Organi|
|00004660| 7a 61 74 69 6f 6e 3a 20 | 4d 6f 74 6f 72 6f 6c 61 |zation: |Motorola|
|00004670| 20 49 6e 63 2e 2c 20 41 | 75 73 74 69 6e 2c 20 54 | Inc., A|ustin, T|
|00004680| 78 0d 0d 0d 44 6f 65 73 | 20 61 6e 79 6f 6e 65 20 |x...Does| anyone |
|00004690| 68 61 76 65 20 73 6f 6d | 65 20 63 6f 64 65 20 66 |have som|e code f|
|000046a0| 6f 72 20 61 6e 20 4d 50 | 57 20 74 6f 6f 6c 20 75 |or an MP|W tool u|
|000046b0| 73 69 6e 67 20 41 70 70 | 6c 65 20 45 76 65 6e 74 |sing App|le Event|
|000046c0| 73 20 74 68 61 74 0d 74 | 68 65 79 20 63 6f 75 6c |s that.t|hey coul|
|000046d0| 64 20 73 65 6e 64 20 6d | 65 3f 20 20 49 6e 20 70 |d send m|e? In p|
|000046e0| 61 72 74 69 63 75 6c 61 | 72 2c 20 49 20 77 61 6e |articula|r, I wan|
|000046f0| 74 20 74 6f 20 63 6f 6d | 6d 75 6e 69 63 61 74 65 |t to com|municate|
|00004700| 20 77 69 74 68 20 74 68 | 65 0d 54 6f 6f 6c 20 53 | with th|e.Tool S|
|00004710| 65 72 76 65 72 20 28 65 | 2e 67 2e 20 72 75 6e 20 |erver (e|.g. run |
|00004720| 61 20 73 63 72 69 70 74 | 29 20 76 69 61 20 41 70 |a script|) via Ap|
|00004730| 70 6c 65 20 45 76 65 6e | 74 73 20 66 72 6f 6d 20 |ple Even|ts from |
|00004740| 77 69 74 68 69 6e 20 61 | 6e 20 4d 50 57 0d 74 6f |within a|n MPW.to|
|00004750| 6f 6c 2e 20 20 54 68 61 | 6e 6b 73 2e 0d 2d 20 2d |ol. Tha|nks..- -|
|00004760| 2d 20 0d 54 6f 6d 20 43 | 75 6e 6e 69 6e 67 68 61 |- .Tom C|unningha|
|00004770| 6d 20 20 4d 6f 74 6f 72 | 6f 6c 61 20 49 6e 63 2e |m Motor|ola Inc.|
|00004780| 20 20 41 75 73 74 69 6e | 20 54 58 0d 74 6f 6d 63 | Austin| TX.tomc|
|00004790| 40 64 73 70 2e 73 70 73 | 2e 6d 6f 74 2e 63 6f 6d |@dsp.sps|.mot.com|
|000047a0| 0d 63 73 2e 75 74 65 78 | 61 73 2e 65 64 75 21 6f |.cs.utex|as.edu!o|
|000047b0| 61 6b 68 69 6c 6c 21 64 | 73 70 21 62 6f 75 77 73 |akhill!d|sp!bouws|
|000047c0| 6d 61 21 74 6f 6d 63 0d | 0d 2b 2b 2b 2b 2b 2b 2b |ma!tomc.|.+++++++|
|000047d0| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|000047e0| 2b 2b 2b 2b 0d 0d 46 72 | 6f 6d 3a 20 6b 65 69 74 |++++..Fr|om: keit|
|000047f0| 68 40 74 61 6c 69 67 65 | 6e 74 2e 63 6f 6d 20 28 |h@talige|nt.com (|
|00004800| 4b 65 69 74 68 20 52 6f | 6c 6c 69 6e 29 0d 4f 72 |Keith Ro|llin).Or|
|00004810| 67 61 6e 69 7a 61 74 69 | 6f 6e 3a 20 54 61 6c 69 |ganizati|on: Tali|
|00004820| 67 65 6e 74 0d 44 61 74 | 65 3a 20 46 72 69 2c 20 |gent.Dat|e: Fri, |
|00004830| 31 38 20 53 65 70 20 31 | 39 39 32 20 30 31 3a 35 |18 Sep 1|992 01:5|
|00004840| 30 3a 31 38 20 47 4d 54 | 0d 0d 49 6e 20 61 72 74 |0:18 GMT|..In art|
|00004850| 69 63 6c 65 20 3c 31 39 | 39 32 53 65 70 31 37 2e |icle <19|92Sep17.|
|00004860| 31 38 31 38 31 39 2e 32 | 33 30 31 38 40 6f 61 6b |181819.2|3018@oak|
|00004870| 68 69 6c 6c 2e 73 70 73 | 2e 6d 6f 74 2e 63 6f 6d |hill.sps|.mot.com|
|00004880| 3e 2c 0d 74 6f 6d 63 40 | 6f 61 6b 68 69 6c 6c 2e |>,.tomc@|oakhill.|
|00004890| 73 70 73 2e 6d 6f 74 2e | 63 6f 6d 20 28 54 6f 6d |sps.mot.|com (Tom|
|000048a0| 20 43 75 6e 6e 69 6e 67 | 68 61 6d 29 20 77 72 6f | Cunning|ham) wro|
|000048b0| 74 65 3a 0d 3e 20 0d 3e | 20 0d 3e 20 44 6f 65 73 |te:.> .>| .> Does|
|000048c0| 20 61 6e 79 6f 6e 65 20 | 68 61 76 65 20 73 6f 6d | anyone |have som|
|000048d0| 65 20 63 6f 64 65 20 66 | 6f 72 20 61 6e 20 4d 50 |e code f|or an MP|
|000048e0| 57 20 74 6f 6f 6c 20 75 | 73 69 6e 67 20 41 70 70 |W tool u|sing App|
|000048f0| 6c 65 20 45 76 65 6e 74 | 73 20 74 68 61 74 0d 3e |le Event|s that.>|
|00004900| 20 74 68 65 79 20 63 6f | 75 6c 64 20 73 65 6e 64 | they co|uld send|
|00004910| 20 6d 65 3f 20 20 49 6e | 20 70 61 72 74 69 63 75 | me? In| particu|
|00004920| 6c 61 72 2c 20 49 20 77 | 61 6e 74 20 74 6f 20 63 |lar, I w|ant to c|
|00004930| 6f 6d 6d 75 6e 69 63 61 | 74 65 20 77 69 74 68 20 |ommunica|te with |
|00004940| 74 68 65 0d 3e 20 54 6f | 6f 6c 20 53 65 72 76 65 |the.> To|ol Serve|
|00004950| 72 20 28 65 2e 67 2e 20 | 72 75 6e 20 61 20 73 63 |r (e.g. |run a sc|
|00004960| 72 69 70 74 29 20 76 69 | 61 20 41 70 70 6c 65 20 |ript) vi|a Apple |
|00004970| 45 76 65 6e 74 73 20 66 | 72 6f 6d 20 77 69 74 68 |Events f|rom with|
|00004980| 69 6e 20 61 6e 20 4d 50 | 57 0d 3e 20 74 6f 6f 6c |in an MP|W.> tool|
|00004990| 2e 20 20 54 68 61 6e 6b | 73 2e 0d 0d 49 20 75 73 |. Thank|s...I us|
|000049a0| 65 64 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |ed the f|ollowing|
|000049b0| 20 69 6e 20 61 20 74 6f | 6f 6c 20 49 20 77 72 6f | in a to|ol I wro|
|000049c0| 74 65 20 74 6f 20 6b 69 | 6c 6c 20 61 6e 64 20 72 |te to ki|ll and r|
|000049d0| 65 73 74 61 72 74 20 74 | 68 65 20 46 69 6e 64 65 |estart t|he Finde|
|000049e0| 72 2e 20 54 68 69 73 0d | 77 61 73 20 69 6e 20 74 |r. This.|was in t|
|000049f0| 68 65 20 68 6f 70 65 73 | 20 74 68 61 74 20 73 68 |he hopes| that sh|
|00004a00| 75 74 74 69 6e 67 20 64 | 6f 77 6e 20 74 68 65 20 |utting d|own the |
|00004a10| 46 69 6e 64 65 72 20 77 | 6f 75 6c 64 20 68 65 6c |Finder w|ould hel|
|00004a20| 70 20 73 70 65 65 64 20 | 75 70 20 6d 79 20 6c 6f |p speed |up my lo|
|00004a30| 6e 67 0d 63 6f 6d 70 69 | 6c 65 73 20 28 69 74 20 |ng.compi|les (it |
|00004a40| 64 69 64 6e 27 74 29 2e | 20 52 65 6d 65 6d 62 65 |didn't).| Remembe|
|00004a50| 72 20 74 68 61 74 20 79 | 6f 75 20 68 61 76 65 20 |r that y|ou have |
|00004a60| 74 6f 20 68 61 76 65 20 | 6f 6e 65 20 6f 66 20 74 |to have |one of t|
|00004a70| 68 65 20 4d 50 57 20 53 | 68 65 6c 6c 73 0d 74 68 |he MPW S|hells.th|
|00004a80| 61 74 20 63 6f 6d 65 73 | 20 77 69 74 68 20 69 74 |at comes| with it|
|00004a90| 73 20 48 69 67 68 2d 4c | 65 76 65 6c 20 45 76 65 |s High-L|evel Eve|
|00004aa0| 6e 74 20 41 77 61 72 65 | 20 62 69 74 20 73 65 74 |nt Aware| bit set|
|00004ab0| 3a 0d 0d 76 6f 69 64 20 | 4b 69 6c 6c 46 69 6e 64 |:..void |KillFind|
|00004ac0| 65 72 28 29 0d 7b 0d 09 | 4f 53 45 72 72 09 09 09 |er().{..|OSErr...|
|00004ad0| 65 72 72 3b 0d 09 4f 53 | 54 79 70 65 09 09 09 73 |err;..OS|Type...s|
|00004ae0| 69 67 6e 61 74 75 72 65 | 20 3d 20 27 4d 41 43 53 |ignature| = 'MACS|
|00004af0| 27 3b 0d 09 41 45 41 64 | 64 72 65 73 73 44 65 73 |';..AEAd|dressDes|
|00004b00| 63 09 74 61 72 67 65 74 | 3b 0d 09 41 70 70 6c 65 |c.target|;..Apple|
|00004b10| 45 76 65 6e 74 09 09 74 | 68 65 45 76 65 6e 74 3b |Event..t|heEvent;|
|00004b20| 0d 09 53 74 72 32 35 35 | 09 09 09 73 3b 0d 09 50 |..Str255|...s;..P|
|00004b30| 72 6f 63 65 73 73 53 65 | 72 69 61 6c 4e 75 6d 62 |rocessSe|rialNumb|
|00004b40| 65 72 09 70 50 73 6e 3b | 0d 09 0d 09 65 72 72 20 |er.pPsn;|....err |
|00004b50| 3d 20 46 69 6e 64 50 72 | 6f 63 65 73 73 42 79 53 |= FindPr|ocessByS|
|00004b60| 69 67 6e 61 74 75 72 65 | 28 73 69 67 6e 61 74 75 |ignature|(signatu|
|00004b70| 72 65 2c 20 26 70 50 73 | 6e 29 3b 0d 09 69 66 20 |re, &pPs|n);..if |
|00004b80| 28 65 72 72 20 3d 3d 20 | 6e 6f 45 72 72 29 20 7b |(err == |noErr) {|
|00004b90| 0d 09 09 65 72 72 20 3d | 20 41 45 43 72 65 61 74 |...err =| AECreat|
|00004ba0| 65 44 65 73 63 28 74 79 | 70 65 50 72 6f 63 65 73 |eDesc(ty|peProces|
|00004bb0| 73 53 65 72 69 61 6c 4e | 75 6d 62 65 72 2c 20 28 |sSerialN|umber, (|
|00004bc0| 50 74 72 29 20 26 70 50 | 73 6e 2c 20 73 69 7a 65 |Ptr) &pP|sn, size|
|00004bd0| 6f 66 28 70 50 73 6e 29 | 2c 0d 26 74 61 72 67 65 |of(pPsn)|,.&targe|
|00004be0| 74 29 3b 0d 09 09 69 66 | 20 28 65 72 72 20 3d 3d |t);...if| (err ==|
|00004bf0| 20 6e 6f 45 72 72 29 20 | 7b 0d 09 09 09 65 72 72 | noErr) |{....err|
|00004c00| 20 3d 20 41 45 43 72 65 | 61 74 65 41 70 70 6c 65 | = AECre|ateApple|
|00004c10| 45 76 65 6e 74 28 27 61 | 65 76 74 27 2c 20 27 71 |Event('a|evt', 'q|
|00004c20| 75 69 74 27 2c 20 26 74 | 61 72 67 65 74 2c 0d 09 |uit', &t|arget,..|
|00004c30| 09 09 09 09 09 09 09 09 | 09 6b 41 75 74 6f 47 65 |........|.kAutoGe|
|00004c40| 6e 65 72 61 74 65 52 65 | 74 75 72 6e 49 44 2c 20 |nerateRe|turnID, |
|00004c50| 6b 41 6e 79 54 72 61 6e | 73 61 63 74 69 6f 6e 49 |kAnyTran|sactionI|
|00004c60| 44 2c 20 26 74 68 65 45 | 76 65 6e 74 29 3b 0d 09 |D, &theE|vent);..|
|00004c70| 09 09 69 66 20 28 65 72 | 72 20 3d 3d 20 6e 6f 45 |..if (er|r == noE|
|00004c80| 72 72 29 20 7b 0d 09 09 | 09 09 65 72 72 20 3d 20 |rr) {...|..err = |
|00004c90| 41 45 53 65 6e 64 28 26 | 74 68 65 45 76 65 6e 74 |AESend(&|theEvent|
|00004ca0| 2c 20 6e 69 6c 2c 20 6b | 41 45 4e 6f 52 65 70 6c |, nil, k|AENoRepl|
|00004cb0| 79 2c 20 6b 41 45 4e 6f | 72 6d 61 6c 50 72 69 6f |y, kAENo|rmalPrio|
|00004cc0| 72 69 74 79 2c 20 6b 4e | 6f 54 69 6d 65 4f 75 74 |rity, kN|oTimeOut|
|00004cd0| 2c 0d 6e 69 6c 2c 20 6e | 69 6c 29 3b 0d 09 09 09 |,.nil, n|il);....|
|00004ce0| 09 69 66 20 28 65 72 72 | 20 21 3d 20 6e 6f 45 72 |.if (err| != noEr|
|00004cf0| 72 29 20 7b 0d 09 09 09 | 09 09 66 70 72 69 6e 74 |r) {....|..fprint|
|00004d00| 66 28 73 74 64 65 72 72 | 2c 20 22 23 23 23 20 2d |f(stderr|, "### -|
|00004d10| 20 45 72 72 6f 72 20 77 | 68 69 6c 65 20 74 72 79 | Error w|hile try|
|00004d20| 69 6e 67 20 74 6f 20 73 | 65 6e 64 20 41 70 70 6c |ing to s|end Appl|
|00004d30| 65 20 45 76 65 6e 74 2e | 5c 6e 22 29 3b 0d 09 09 |e Event.|\n");...|
|00004d40| 09 09 09 47 65 74 53 79 | 73 45 72 72 54 65 78 74 |...GetSy|sErrText|
|00004d50| 28 65 72 72 2c 20 73 29 | 3b 0d 09 09 09 09 09 66 |(err, s)|;......f|
|00004d60| 70 72 69 6e 74 66 28 73 | 74 64 65 72 72 2c 20 22 |printf(s|tderr, "|
|00004d70| 23 23 23 20 25 73 2e 5c | 6e 22 2c 20 73 29 3b 0d |### %s.\|n", s);.|
|00004d80| 09 09 09 09 09 65 78 69 | 74 28 6b 42 61 64 41 45 |.....exi|t(kBadAE|
|00004d90| 53 65 6e 64 29 3b 0d 09 | 09 09 09 7d 0d 09 09 09 |Send);..|...}....|
|00004da0| 7d 20 65 6c 73 65 20 7b | 0d 09 09 09 09 66 70 72 |} else {|.....fpr|
|00004db0| 69 6e 74 66 28 73 74 64 | 65 72 72 2c 20 22 23 23 |intf(std|err, "##|
|00004dc0| 23 20 2d 20 45 72 72 6f | 72 20 77 68 69 6c 65 20 |# - Erro|r while |
|00004dd0| 74 72 79 69 6e 67 20 74 | 6f 20 63 72 65 61 74 65 |trying t|o create|
|00004de0| 20 41 70 70 6c 65 20 45 | 76 65 6e 74 2e 5c 6e 22 | Apple E|vent.\n"|
|00004df0| 29 3b 0d 09 09 09 09 47 | 65 74 53 79 73 45 72 72 |);.....G|etSysErr|
|00004e00| 54 65 78 74 28 65 72 72 | 2c 20 73 29 3b 0d 09 09 |Text(err|, s);...|
|00004e10| 09 09 66 70 72 69 6e 74 | 66 28 73 74 64 65 72 72 |..fprint|f(stderr|
|00004e20| 2c 20 22 23 23 23 20 25 | 73 2e 5c 6e 22 2c 20 73 |, "### %|s.\n", s|
|00004e30| 29 3b 0d 09 09 09 09 65 | 78 69 74 28 6b 42 61 64 |);.....e|xit(kBad|
|00004e40| 41 70 70 6c 65 45 76 65 | 6e 74 29 3b 0d 09 09 09 |AppleEve|nt);....|
|00004e50| 7d 0d 09 09 7d 20 65 6c | 73 65 20 7b 0d 09 09 09 |}...} el|se {....|
|00004e60| 66 70 72 69 6e 74 66 28 | 73 74 64 65 72 72 2c 20 |fprintf(|stderr, |
|00004e70| 22 23 23 23 20 2d 20 45 | 72 72 6f 72 20 77 68 69 |"### - E|rror whi|
|00004e80| 6c 65 20 74 72 79 69 6e | 67 20 74 6f 20 63 72 65 |le tryin|g to cre|
|00004e90| 61 74 65 20 46 69 6e 64 | 65 72 20 61 64 64 72 65 |ate Find|er addre|
|00004ea0| 73 73 2e 5c 6e 22 29 3b | 0d 09 09 09 47 65 74 53 |ss.\n");|....GetS|
|00004eb0| 79 73 45 72 72 54 65 78 | 74 28 65 72 72 2c 20 73 |ysErrTex|t(err, s|
|00004ec0| 29 3b 0d 09 09 09 66 70 | 72 69 6e 74 66 28 73 74 |);....fp|rintf(st|
|00004ed0| 64 65 72 72 2c 20 22 23 | 23 23 20 25 73 2e 5c 6e |derr, "#|## %s.\n|
|00004ee0| 22 2c 20 73 29 3b 0d 09 | 09 09 65 78 69 74 28 6b |", s);..|..exit(k|
|00004ef0| 42 61 64 41 64 64 72 65 | 73 73 29 3b 0d 09 09 7d |BadAddre|ss);...}|
|00004f00| 0d 09 7d 20 65 6c 73 65 | 20 7b 0d 0d 2b 2b 2b 2b |..} else| {..++++|
|00004f10| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|00004f20| 2b 2b 2b 2b 2b 2b 2b 0d | 0d 46 72 6f 6d 3a 20 6b |+++++++.|.From: k|
|00004f30| 73 61 6e 64 40 61 70 70 | 6c 65 2e 63 6f 6d 20 28 |sand@app|le.com (|
|00004f40| 4b 65 6e 74 20 53 61 6e | 64 76 69 6b 29 0d 44 61 |Kent San|dvik).Da|
|00004f50| 74 65 3a 20 31 38 20 53 | 65 70 20 39 32 20 32 32 |te: 18 S|ep 92 22|
|00004f60| 3a 32 32 3a 35 33 20 47 | 4d 54 0d 4f 72 67 61 6e |:22:53 G|MT.Organ|
|00004f70| 69 7a 61 74 69 6f 6e 3a | 20 41 70 70 6c 65 0d 0d |ization:| Apple..|
|00004f80| 49 6e 20 61 72 74 69 63 | 6c 65 20 3c 31 39 39 32 |In artic|le <1992|
|00004f90| 53 65 70 31 37 2e 31 38 | 31 38 31 39 2e 32 33 30 |Sep17.18|1819.230|
|00004fa0| 31 38 40 6f 61 6b 68 69 | 6c 6c 2e 73 70 73 2e 6d |18@oakhi|ll.sps.m|
|00004fb0| 6f 74 2e 63 6f 6d 3e 2c | 0d 74 6f 6d 63 40 6f 61 |ot.com>,|.tomc@oa|
|00004fc0| 6b 68 69 6c 6c 2e 73 70 | 73 2e 6d 6f 74 2e 63 6f |khill.sp|s.mot.co|
|00004fd0| 6d 20 28 54 6f 6d 20 43 | 75 6e 6e 69 6e 67 68 61 |m (Tom C|unningha|
|00004fe0| 6d 29 20 77 72 6f 74 65 | 3a 0d 3e 20 44 6f 65 73 |m) wrote|:.> Does|
|00004ff0| 20 61 6e 79 6f 6e 65 20 | 68 61 76 65 20 73 6f 6d | anyone |have som|
|00005000| 65 20 63 6f 64 65 20 66 | 6f 72 20 61 6e 20 4d 50 |e code f|or an MP|
|00005010| 57 20 74 6f 6f 6c 20 75 | 73 69 6e 67 20 41 70 70 |W tool u|sing App|
|00005020| 6c 65 20 45 76 65 6e 74 | 73 20 74 68 61 74 0d 3e |le Event|s that.>|
|00005030| 20 74 68 65 79 20 63 6f | 75 6c 64 20 73 65 6e 64 | they co|uld send|
|00005040| 20 6d 65 3f 20 20 49 6e | 20 70 61 72 74 69 63 75 | me? In| particu|
|00005050| 6c 61 72 2c 20 49 20 77 | 61 6e 74 20 74 6f 20 63 |lar, I w|ant to c|
|00005060| 6f 6d 6d 75 6e 69 63 61 | 74 65 20 77 69 74 68 20 |ommunica|te with |
|00005070| 74 68 65 0d 3e 20 54 6f | 6f 6c 20 53 65 72 76 65 |the.> To|ol Serve|
|00005080| 72 20 28 65 2e 67 2e 20 | 72 75 6e 20 61 20 73 63 |r (e.g. |run a sc|
|00005090| 72 69 70 74 29 20 76 69 | 61 20 41 70 70 6c 65 20 |ript) vi|a Apple |
|000050a0| 45 76 65 6e 74 73 20 66 | 72 6f 6d 20 77 69 74 68 |Events f|rom with|
|000050b0| 69 6e 20 61 6e 20 4d 50 | 57 0d 3e 20 74 6f 6f 6c |in an MP|W.> tool|
|000050c0| 2e 20 20 54 68 61 6e 6b | 73 2e 0d 0d 54 68 65 20 |. Thank|s...The |
|000050d0| 53 79 73 74 65 6d 20 37 | 20 43 44 20 68 61 64 20 |System 7| CD had |
|000050e0| 61 6e 20 4d 50 57 20 74 | 6f 6f 6c 20 63 61 6c 6c |an MPW t|ool call|
|000050f0| 65 64 20 53 65 6e 64 41 | 45 20 74 68 61 74 20 79 |ed SendA|E that y|
|00005100| 6f 75 20 63 6f 75 6c 64 | 20 75 73 65 2e 0d 54 68 |ou could| use..Th|
|00005110| 65 20 41 45 73 20 66 6f | 72 20 54 6f 6f 6c 73 65 |e AEs fo|r Toolse|
|00005120| 72 76 65 72 20 61 72 65 | 20 64 6f 63 75 6d 65 6e |rver are| documen|
|00005130| 74 65 64 20 69 6e 20 74 | 68 65 20 54 6f 6f 6c 73 |ted in t|he Tools|
|00005140| 65 72 76 65 72 20 52 65 | 6c 65 61 73 65 0d 4e 6f |erver Re|lease.No|
|00005150| 74 65 73 2e 0d 0d 46 69 | 6e 61 6c 6c 79 2c 20 74 |tes...Fi|nally, t|
|00005160| 68 65 20 44 65 76 65 6c | 6f 70 65 72 20 43 44 20 |he Devel|oper CD |
|00005170| 73 68 6f 75 6c 64 20 68 | 61 76 65 20 61 20 6c 6f |should h|ave a lo|
|00005180| 74 20 6f 66 20 73 6d 61 | 6c 6c 20 41 45 20 73 6e |t of sma|ll AE sn|
|00005190| 69 70 70 65 74 73 0d 63 | 6f 75 6c 64 20 72 65 75 |ippets.c|ould reu|
|000051a0| 73 65 64 20 66 6f 72 20 | 41 45 20 63 6f 64 65 2e |sed for |AE code.|
|000051b0| 0d 0d 4b 65 6e 74 2f 44 | 54 53 0d 0d 22 59 6f 75 |..Kent/D|TS.."You|
|000051c0| 20 73 68 6f 75 6c 64 20 | 72 65 61 6c 6c 79 20 6a | should |really j|
|000051d0| 75 73 74 20 72 65 6c 61 | 78 22 20 2d 4d 53 54 33 |ust rela|x" -MST3|
|000051e0| 4b 0d 2d 20 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |K.- ----|--------|
|000051f0| 2d 2d 2d 2d 2d 2d 2d 0d | 4b 65 6e 74 20 53 61 6e |-------.|Kent San|
|00005200| 64 76 69 6b 20 28 55 55 | 43 50 3a 20 2e 2e 2e 2e |dvik (UU|CP: ....|
|00005210| 21 61 70 70 6c 65 21 6b | 73 61 6e 64 3b 20 49 4e |!apple!k|sand; IN|
|00005220| 54 45 52 4e 45 54 3a 20 | 6b 73 61 6e 64 40 61 70 |TERNET: |ksand@ap|
|00005230| 70 6c 65 2e 63 6f 6d 29 | 0d 44 49 53 43 4c 41 49 |ple.com)|.DISCLAI|
|00005240| 4d 45 52 3a 20 50 72 69 | 76 61 74 65 20 61 63 74 |MER: Pri|vate act|
|00005250| 69 76 69 74 69 65 73 20 | 6f 6e 20 74 68 65 20 4e |ivities |on the N|
|00005260| 65 74 2e 0d 0d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |et...---|--------|
|00005270| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005280| 0d 0d 46 72 6f 6d 3a 20 | 6d 78 6d 6f 72 61 40 75 |..From: |mxmora@u|
|00005290| 6e 69 78 2e 73 72 69 2e | 63 6f 6d 20 28 4d 61 74 |nix.sri.|com (Mat|
|000052a0| 74 68 65 77 20 58 61 76 | 69 65 72 20 4d 6f 72 61 |thew Xav|ier Mora|
|000052b0| 29 0d 53 75 62 6a 65 63 | 74 3a 20 57 68 61 74 20 |).Subjec|t: What |
|000052c0| 69 73 20 74 68 65 20 62 | 61 6e 64 77 69 64 74 68 |is the b|andwidth|
|000052d0| 20 6f 66 20 61 20 43 61 | 62 6c 65 54 56 20 63 68 | of a Ca|bleTV ch|
|000052e0| 61 6e 6e 65 6c 3f 0d 44 | 61 74 65 3a 20 31 37 20 |annel?.D|ate: 17 |
|000052f0| 53 65 70 20 39 32 20 31 | 37 3a 35 31 3a 35 38 20 |Sep 92 1|7:51:58 |
|00005300| 47 4d 54 0d 4f 72 67 61 | 6e 69 7a 61 74 69 6f 6e |GMT.Orga|nization|
|00005310| 3a 20 53 52 49 20 49 6e | 74 65 72 6e 61 74 69 6f |: SRI In|ternatio|
|00005320| 6e 61 6c 0d 0d 54 68 69 | 73 20 71 75 65 73 74 69 |nal..Thi|s questi|
|00005330| 6f 6e 20 70 72 6f 62 61 | 62 6c 79 20 64 6f 65 73 |on proba|bly does|
|00005340| 6e 27 74 20 62 65 6c 6f | 6e 67 20 68 65 72 65 20 |n't belo|ng here |
|00005350| 62 75 74 20 49 20 66 69 | 67 75 72 65 20 74 68 69 |but I fi|gure thi|
|00005360| 73 20 69 73 20 74 68 65 | 0d 73 6d 61 72 74 65 73 |s is the|.smartes|
|00005370| 74 20 67 72 6f 75 70 20 | 6f 6e 20 74 68 65 20 6e |t group |on the n|
|00005380| 65 74 20 61 6e 79 77 61 | 79 20 73 6f 20 79 6f 75 |et anywa|y so you|
|00005390| 20 6d 69 67 68 74 20 6b | 6e 6f 77 2e 20 3a 2d 29 | might k|now. :-)|
|000053a0| 0d 0d 57 68 61 74 20 69 | 73 20 74 68 65 20 62 61 |..What i|s the ba|
|000053b0| 6e 64 77 69 64 74 68 20 | 6f 66 20 61 20 63 61 62 |ndwidth |of a cab|
|000053c0| 6c 65 20 74 76 20 63 68 | 61 6e 6e 65 6c 20 61 6e |le tv ch|annel an|
|000053d0| 64 20 63 6f 75 6c 64 20 | 65 74 68 65 72 6e 65 74 |d could |ethernet|
|000053e0| 20 70 61 73 73 20 74 68 | 72 6f 75 67 68 0d 69 74 | pass th|rough.it|
|000053f0| 3f 20 48 6f 77 20 61 62 | 6f 75 74 20 61 70 70 6c |? How ab|out appl|
|00005400| 65 74 61 6c 6b 3f 20 59 | 6f 75 20 73 65 65 20 77 |etalk? Y|ou see w|
|00005410| 68 61 74 20 49 27 6d 20 | 67 65 74 74 69 6e 67 20 |hat I'm |getting |
|00005420| 61 74 20 64 6f 6e 27 74 | 20 79 6f 75 2e 20 3a 2d |at don't| you. :-|
|00005430| 29 0d 0d 54 68 61 6e 6b | 73 0d 0d 4d 61 74 74 0d |)..Thank|s..Matt.|
|00005440| 0d 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |.+++++++|++++++++|
|00005450| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 0d 0d 46 72 |++++++++|++++..Fr|
|00005460| 6f 6d 3a 20 41 6e 64 65 | 72 73 20 57 61 6c 6c 67 |om: Ande|rs Wallg|
|00005470| 72 65 6e 20 3c 61 6e 64 | 65 72 73 40 76 65 72 69 |ren <and|ers@veri|
|00005480| 74 79 2e 63 6f 6d 3e 0d | 4f 72 67 61 6e 69 7a 61 |ty.com>.|Organiza|
|00005490| 74 69 6f 6e 3a 20 56 65 | 72 69 74 79 2c 20 4d 6f |tion: Ve|rity, Mo|
|000054a0| 75 6e 74 61 69 6e 20 56 | 69 65 77 2c 20 43 41 2c |untain V|iew, CA,|
|000054b0| 20 55 53 41 0d 44 61 74 | 65 3a 20 46 72 69 2c 20 | USA.Dat|e: Fri, |
|000054c0| 31 38 20 53 65 70 20 39 | 32 20 30 33 3a 31 38 3a |18 Sep 9|2 03:18:|
|000054d0| 35 32 20 47 4d 54 0d 0d | 49 6e 20 61 72 74 69 63 |52 GMT..|In artic|
|000054e0| 6c 65 20 3c 6d 78 6d 6f | 72 61 2d 31 37 30 39 39 |le <mxmo|ra-17099|
|000054f0| 32 31 30 35 31 33 30 40 | 63 73 73 2d 6d 61 63 31 |2105130@|css-mac1|
|00005500| 2e 73 72 69 2e 63 6f 6d | 3e 20 4d 61 74 74 68 65 |.sri.com|> Matthe|
|00005510| 77 20 58 61 76 69 65 72 | 0d 4d 6f 72 61 2c 20 6d |w Xavier|.Mora, m|
|00005520| 78 6d 6f 72 61 40 75 6e | 69 78 2e 73 72 69 2e 63 |xmora@un|ix.sri.c|
|00005530| 6f 6d 20 77 72 69 74 65 | 73 3a 0d 3e 57 68 61 74 |om write|s:.>What|
|00005540| 20 69 73 20 74 68 65 20 | 62 61 6e 64 77 69 64 74 | is the |bandwidt|
|00005550| 68 20 6f 66 20 61 20 63 | 61 62 6c 65 20 74 76 20 |h of a c|able tv |
|00005560| 63 68 61 6e 6e 65 6c 20 | 61 6e 64 20 63 6f 75 6c |channel |and coul|
|00005570| 64 20 65 74 68 65 72 6e | 65 74 0d 70 61 73 73 20 |d ethern|et.pass |
|00005580| 74 68 72 6f 75 67 68 0d | 3e 69 74 3f 20 48 6f 77 |through.|>it? How|
|00005590| 20 61 62 6f 75 74 20 61 | 70 70 6c 65 74 61 6c 6b | about a|ppletalk|
|000055a0| 3f 20 59 6f 75 20 73 65 | 65 20 77 68 61 74 20 49 |? You se|e what I|
|000055b0| 27 6d 20 67 65 74 74 69 | 6e 67 20 61 74 20 64 6f |'m getti|ng at do|
|000055c0| 6e 27 74 20 79 6f 75 2e | 20 3a 2d 29 0d 0d 57 65 |n't you.| :-)..We|
|000055d0| 6c 6c 2c 20 6f 6e 65 20 | 4e 54 53 43 20 54 56 20 |ll, one |NTSC TV |
|000055e0| 63 68 61 6e 6e 65 6c 20 | 69 73 20 36 4d 48 7a 2c |channel |is 6MHz,|
|000055f0| 20 73 6f 20 61 73 73 75 | 6d 65 20 61 20 31 30 30 | so assu|me a 100|
|00005600| 20 63 68 61 6e 6e 65 6c | 20 63 61 70 61 63 69 74 | channel| capacit|
|00005610| 79 0d 28 70 65 72 68 61 | 70 73 20 67 65 6e 65 72 |y.(perha|ps gener|
|00005620| 6f 75 73 2c 20 62 75 74 | 20 69 74 20 6d 61 6b 65 |ous, but| it make|
|00005630| 73 20 74 68 65 20 6d 61 | 74 68 20 65 61 73 69 65 |s the ma|th easie|
|00005640| 72 29 2c 20 77 68 69 63 | 68 20 6d 65 61 6e 73 0d |r), whic|h means.|
|00005650| 73 6f 6d 65 74 68 69 6e | 67 20 6c 69 6b 65 20 36 |somethin|g like 6|
|00005660| 30 30 4d 48 7a 2e 0d 0d | 61 6e 64 65 72 73 0d 0d |00MHz...|anders..|
|00005670| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|00005680| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 0d 0d 46 72 6f |++++++++|+++..Fro|
|00005690| 6d 3a 20 62 65 63 6b 65 | 74 74 40 63 74 72 76 61 |m: becke|tt@ctrva|
|000056a0| 78 2e 76 61 6e 64 65 72 | 62 69 6c 74 2e 65 64 75 |x.vander|bilt.edu|
|000056b0| 20 28 52 6f 62 65 72 74 | 20 42 65 63 6b 65 74 74 | (Robert| Beckett|
|000056c0| 29 0d 44 61 74 65 3a 20 | 31 38 20 53 65 70 20 39 |).Date: |18 Sep 9|
|000056d0| 32 20 31 36 3a 33 32 3a | 33 35 20 47 4d 54 0d 4f |2 16:32:|35 GMT.O|
|000056e0| 72 67 61 6e 69 7a 61 74 | 69 6f 6e 3a 20 56 61 6e |rganizat|ion: Van|
|000056f0| 64 65 72 62 69 6c 74 20 | 55 6e 69 76 65 72 73 69 |derbilt |Universi|
|00005700| 74 79 20 43 6f 6d 70 75 | 74 65 72 20 43 65 6e 74 |ty Compu|ter Cent|
|00005710| 65 72 0d 0d 49 6e 20 61 | 72 74 69 63 6c 65 20 3c |er..In a|rticle <|
|00005720| 6d 78 6d 6f 72 61 2d 31 | 37 30 39 39 32 31 30 35 |mxmora-1|70992105|
|00005730| 31 33 30 40 63 73 73 2d | 6d 61 63 31 2e 73 72 69 |130@css-|mac1.sri|
|00005740| 2e 63 6f 6d 3e 2c 20 6d | 78 6d 6f 72 61 40 75 6e |.com>, m|xmora@un|
|00005750| 69 78 2e 73 72 69 2e 63 | 6f 6d 0d 28 4d 61 74 74 |ix.sri.c|om.(Matt|
|00005760| 68 65 77 20 58 61 76 69 | 65 72 20 4d 6f 72 61 29 |hew Xavi|er Mora)|
|00005770| 20 77 72 6f 74 65 3a 0d | 3e 20 0d 3e 20 54 68 69 | wrote:.|> .> Thi|
|00005780| 73 20 71 75 65 73 74 69 | 6f 6e 20 70 72 6f 62 61 |s questi|on proba|
|00005790| 62 6c 79 20 64 6f 65 73 | 6e 27 74 20 62 65 6c 6f |bly does|n't belo|
|000057a0| 6e 67 20 68 65 72 65 20 | 62 75 74 20 49 20 66 69 |ng here |but I fi|
|000057b0| 67 75 72 65 20 74 68 69 | 73 20 69 73 20 74 68 65 |gure thi|s is the|
|000057c0| 0d 3e 20 73 6d 61 72 74 | 65 73 74 20 67 72 6f 75 |.> smart|est grou|
|000057d0| 70 20 6f 6e 20 74 68 65 | 20 6e 65 74 20 61 6e 79 |p on the| net any|
|000057e0| 77 61 79 20 73 6f 20 79 | 6f 75 20 6d 69 67 68 74 |way so y|ou might|
|000057f0| 20 6b 6e 6f 77 2e 20 3a | 2d 29 0d 3e 20 0d 3e 20 | know. :|-).> .> |
|00005800| 57 68 61 74 20 69 73 20 | 74 68 65 20 62 61 6e 64 |What is |the band|
|00005810| 77 69 64 74 68 20 6f 66 | 20 61 20 63 61 62 6c 65 |width of| a cable|
|00005820| 20 74 76 20 63 68 61 6e | 6e 65 6c 20 61 6e 64 20 | tv chan|nel and |
|00005830| 63 6f 75 6c 64 20 65 74 | 68 65 72 6e 65 74 20 70 |could et|hernet p|
|00005840| 61 73 73 20 74 68 72 6f | 75 67 68 0d 3e 20 69 74 |ass thro|ugh.> it|
|00005850| 3f 20 48 6f 77 20 61 62 | 6f 75 74 20 61 70 70 6c |? How ab|out appl|
|00005860| 65 74 61 6c 6b 3f 20 59 | 6f 75 20 73 65 65 20 77 |etalk? Y|ou see w|
|00005870| 68 61 74 20 49 27 6d 20 | 67 65 74 74 69 6e 67 20 |hat I'm |getting |
|00005880| 61 74 20 64 6f 6e 27 74 | 20 79 6f 75 2e 20 3a 2d |at don't| you. :-|
|00005890| 29 0d 3e 20 0d 0d 4f 6e | 20 6f 75 72 20 62 72 61 |).> ..On| our bra|
|000058a0| 6f 64 62 61 6e 64 2c 20 | 63 61 62 6c 65 20 54 56 |odband, |cable TV|
|000058b0| 20 61 6e 64 20 64 61 74 | 61 20 63 68 61 6e 6e 65 | and dat|a channe|
|000058c0| 6c 73 20 63 6f 2d 65 78 | 69 73 74 2e 20 20 43 61 |ls co-ex|ist. Ca|
|000058d0| 62 6c 65 20 54 56 20 63 | 68 61 6e 6e 65 6c 73 0d |ble TV c|hannels.|
|000058e0| 61 72 65 20 36 4d 68 7a | 20 77 69 64 65 2e 20 20 |are 6Mhz| wide. |
|000058f0| 57 65 20 68 61 76 65 20 | 41 70 70 6c 69 54 65 6b |We have |AppliTek|
|00005900| 73 20 77 68 69 63 68 20 | 68 61 76 65 20 73 65 6e |s which |have sen|
|00005910| 64 20 61 6e 64 20 72 65 | 63 65 69 76 65 20 63 68 |d and re|ceive ch|
|00005920| 61 6e 6e 65 6c 73 2c 0d | 65 61 63 68 20 6f 66 20 |annels,.|each of |
|00005930| 77 68 69 63 68 20 69 73 | 20 36 4d 68 7a 20 77 69 |which is| 6Mhz wi|
|00005940| 64 65 2e 20 20 57 65 20 | 61 6c 73 6f 20 68 61 76 |de. We |also hav|
|00005950| 65 20 43 68 69 70 63 6f | 6d 73 20 77 68 69 63 68 |e Chipco|ms which|
|00005960| 20 75 73 65 20 31 32 4d | 68 7a 20 63 68 61 6e 6e | use 12M|hz chann|
|00005970| 65 6c 73 0d 74 68 61 74 | 20 73 6f 6d 65 68 6f 77 |els.that| somehow|
|00005980| 20 6d 61 6e 61 67 65 20 | 74 6f 20 73 65 6e 64 20 | manage |to send |
|00005990| 61 6e 64 20 72 65 63 65 | 69 76 65 2e 20 20 53 6f |and rece|ive. So|
|000059a0| 20 69 74 20 61 70 70 65 | 61 72 73 20 74 68 61 74 | it appe|ars that|
|000059b0| 20 69 66 20 79 6f 75 20 | 77 69 73 68 20 74 6f 0d | if you |wish to.|
|000059c0| 64 6f 20 66 75 6c 6c 20 | 65 74 68 65 72 6e 65 74 |do full |ethernet|
|000059d0| 20 6f 6e 20 63 61 62 6c | 65 2c 20 79 6f 75 20 6e | on cabl|e, you n|
|000059e0| 65 65 64 20 74 6f 20 73 | 65 74 20 61 73 69 64 65 |eed to s|et aside|
|000059f0| 20 32 20 63 61 62 6c 65 | 20 63 68 61 6e 6e 65 6c | 2 cable| channel|
|00005a00| 73 20 74 6f 20 64 6f 20 | 69 74 2e 0d 20 49 20 61 |s to do |it.. I a|
|00005a10| 6d 20 6e 6f 20 6e 65 74 | 77 6f 72 6b 69 6e 67 20 |m no net|working |
|00005a20| 65 78 70 65 72 74 2c 20 | 62 75 74 20 74 68 69 73 |expert, |but this|
|00005a30| 20 69 73 20 6d 79 20 75 | 6e 64 65 72 73 74 61 6e | is my u|nderstan|
|00005a40| 64 69 6e 67 20 6f 66 20 | 74 68 65 20 73 69 74 75 |ding of |the situ|
|00005a50| 61 74 69 6f 6e 0d 68 65 | 72 65 2e 0d 0d 49 20 61 |ation.he|re...I a|
|00005a60| 6d 20 72 65 6d 69 6e 64 | 65 64 20 73 6f 6d 65 68 |m remind|ed someh|
|00005a70| 6f 77 20 6f 66 20 74 68 | 65 20 6f 6c 64 20 53 6f |ow of th|e old So|
|00005a80| 6e 79 20 50 43 4d 20 46 | 31 20 64 69 67 69 74 61 |ny PCM F|1 digita|
|00005a90| 6c 20 61 75 64 69 6f 20 | 70 72 6f 63 65 73 73 6f |l audio |processo|
|00005aa0| 72 2c 20 77 68 69 63 68 | 0d 61 6c 6c 6f 77 65 64 |r, which|.allowed|
|00005ab0| 20 6f 6e 65 20 74 6f 20 | 72 65 63 6f 72 64 20 66 | one to |record f|
|00005ac0| 75 6c 6c 20 31 36 62 69 | 74 2f 34 34 2e 30 35 36 |ull 16bi|t/44.056|
|00005ad0| 4b 68 7a 20 32 20 63 68 | 61 6e 6e 65 6c 20 61 75 |Khz 2 ch|annel au|
|00005ae0| 64 69 6f 20 28 61 62 6f | 75 74 20 31 2e 34 20 4d |dio (abo|ut 1.4 M|
|00005af0| 62 2f 73 29 0d 6f 6e 74 | 6f 20 72 65 67 75 6c 61 |b/s).ont|o regula|
|00005b00| 72 20 56 48 53 20 6f 72 | 20 42 65 74 61 20 56 43 |r VHS or| Beta VC|
|00005b10| 52 27 73 2e 20 20 4f 66 | 20 63 6f 75 72 73 65 2c |R's. Of| course,|
|00005b20| 20 45 74 68 65 72 6e 65 | 74 20 28 61 74 20 31 30 | Etherne|t (at 10|
|00005b30| 20 4d 62 2f 73 29 20 69 | 73 20 6d 75 63 68 0d 66 | Mb/s) i|s much.f|
|00005b40| 61 73 74 65 72 2e 0d 0d | 0d 2d 20 2d 2d 52 6f 62 |aster...|.- --Rob|
|00005b50| 65 72 74 20 20 20 20 42 | 45 43 4b 45 54 54 40 63 |ert B|ECKETT@c|
|00005b60| 74 72 76 61 78 2e 76 61 | 6e 64 65 72 62 69 6c 74 |trvax.va|nderbilt|
|00005b70| 2e 65 64 75 0d 20 20 20 | 20 20 20 20 20 20 20 20 |.edu. | |
|00005b80| 20 56 61 6e 64 65 72 62 | 69 6c 74 20 55 6e 69 76 | Vanderb|ilt Univ|
|00005b90| 65 72 73 69 74 79 20 43 | 6f 6d 70 75 74 65 72 20 |ersity C|omputer |
|00005ba0| 43 65 6e 74 65 72 0d 0d | 2b 2b 2b 2b 2b 2b 2b 2b |Center..|++++++++|
|00005bb0| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|00005bc0| 2b 2b 2b 0d 0d 46 72 6f | 6d 3a 20 70 6f 74 74 73 |+++..Fro|m: potts|
|00005bd0| 40 69 74 6c 2e 69 74 64 | 2e 75 6d 69 63 68 2e 65 |@itl.itd|.umich.e|
|00005be0| 64 75 20 28 50 61 75 6c | 20 50 6f 74 74 73 29 0d |du (Paul| Potts).|
|00005bf0| 44 61 74 65 3a 20 31 38 | 20 53 65 70 20 39 32 20 |Date: 18| Sep 92 |
|00005c00| 32 30 3a 31 30 3a 31 36 | 20 47 4d 54 0d 4f 72 67 |20:10:16| GMT.Org|
|00005c10| 61 6e 69 7a 61 74 69 6f | 6e 3a 20 49 6e 73 74 72 |anizatio|n: Instr|
|00005c20| 75 63 74 69 6f 6e 61 6c | 20 54 65 63 68 6e 6f 6c |uctional| Technol|
|00005c30| 6f 67 79 20 4c 61 62 6f | 72 61 74 6f 72 79 2c 20 |ogy Labo|ratory, |
|00005c40| 55 6e 69 76 65 72 73 69 | 74 79 20 6f 66 20 4d 69 |Universi|ty of Mi|
|00005c50| 63 68 69 67 61 6e 0d 0d | 49 6e 20 61 72 74 69 63 |chigan..|In artic|
|00005c60| 6c 65 20 3c 62 65 63 6b | 65 74 74 2d 31 38 30 39 |le <beck|ett-1809|
|00005c70| 39 32 31 31 31 39 31 32 | 40 73 64 76 6d 61 63 31 |92111912|@sdvmac1|
|00005c80| 2e 63 63 2e 76 61 6e 64 | 65 72 62 69 6c 74 2e 65 |.cc.vand|erbilt.e|
|00005c90| 64 75 3e 20 62 65 63 6b | 65 74 74 40 63 74 72 76 |du> beck|ett@ctrv|
|00005ca0| 61 78 2e 76 61 6e 64 65 | 72 62 69 6c 74 2e 65 64 |ax.vande|rbilt.ed|
|00005cb0| 75 20 28 52 6f 62 65 72 | 74 20 42 65 63 6b 65 74 |u (Rober|t Becket|
|00005cc0| 74 29 20 77 72 69 74 65 | 73 3a 0d 3e 49 6e 20 61 |t) write|s:.>In a|
|00005cd0| 72 74 69 63 6c 65 20 3c | 6d 78 6d 6f 72 61 2d 31 |rticle <|mxmora-1|
|00005ce0| 37 30 39 39 32 31 30 35 | 31 33 30 40 63 73 73 2d |70992105|130@css-|
|00005cf0| 6d 61 63 31 2e 73 72 69 | 2e 63 6f 6d 3e 2c 20 6d |mac1.sri|.com>, m|
|00005d00| 78 6d 6f 72 61 40 75 6e | 69 78 2e 73 72 69 2e 63 |xmora@un|ix.sri.c|
|00005d10| 6f 6d 0d 3e 28 4d 61 74 | 74 68 65 77 20 58 61 76 |om.>(Mat|thew Xav|
|00005d20| 69 65 72 20 4d 6f 72 61 | 29 20 77 72 6f 74 65 3a |ier Mora|) wrote:|
|00005d30| 0d 3e 3e 20 0d 3e 3e 20 | 54 68 69 73 20 71 75 65 |.>> .>> |This que|
|00005d40| 73 74 69 6f 6e 20 70 72 | 6f 62 61 62 6c 79 20 64 |stion pr|obably d|
|00005d50| 6f 65 73 6e 27 74 20 62 | 65 6c 6f 6e 67 20 68 65 |oesn't b|elong he|
|00005d60| 72 65 20 62 75 74 20 49 | 20 66 69 67 75 72 65 20 |re but I| figure |
|00005d70| 74 68 69 73 20 69 73 20 | 74 68 65 0d 3e 3e 20 73 |this is |the.>> s|
|00005d80| 6d 61 72 74 65 73 74 20 | 67 72 6f 75 70 20 6f 6e |martest |group on|
|00005d90| 20 74 68 65 20 6e 65 74 | 20 61 6e 79 77 61 79 20 | the net| anyway |
|00005da0| 73 6f 20 79 6f 75 20 6d | 69 67 68 74 20 6b 6e 6f |so you m|ight kno|
|00005db0| 77 2e 20 3a 2d 29 0d 3e | 3e 20 0d 3e 3e 20 57 68 |w. :-).>|> .>> Wh|
|00005dc0| 61 74 20 69 73 20 74 68 | 65 20 62 61 6e 64 77 69 |at is th|e bandwi|
|00005dd0| 64 74 68 20 6f 66 20 61 | 20 63 61 62 6c 65 20 74 |dth of a| cable t|
|00005de0| 76 20 63 68 61 6e 6e 65 | 6c 20 61 6e 64 20 63 6f |v channe|l and co|
|00005df0| 75 6c 64 20 65 74 68 65 | 72 6e 65 74 20 70 61 73 |uld ethe|rnet pas|
|00005e00| 73 20 74 68 72 6f 75 67 | 68 0d 3e 3e 20 69 74 3f |s throug|h.>> it?|
|00005e10| 20 48 6f 77 20 61 62 6f | 75 74 20 61 70 70 6c 65 | How abo|ut apple|
|00005e20| 74 61 6c 6b 3f 20 59 6f | 75 20 73 65 65 20 77 68 |talk? Yo|u see wh|
|00005e30| 61 74 20 49 27 6d 20 67 | 65 74 74 69 6e 67 20 61 |at I'm g|etting a|
|00005e40| 74 20 64 6f 6e 27 74 20 | 79 6f 75 2e 20 3a 2d 29 |t don't |you. :-)|
|00005e50| 0d 3e 3e 20 0d 3e 0d 3e | 4f 6e 20 6f 75 72 20 62 |.>> .>.>|On our b|
|00005e60| 72 61 6f 64 62 61 6e 64 | 2c 20 63 61 62 6c 65 20 |raodband|, cable |
|00005e70| 54 56 20 61 6e 64 20 64 | 61 74 61 20 63 68 61 6e |TV and d|ata chan|
|00005e80| 6e 65 6c 73 20 63 6f 2d | 65 78 69 73 74 2e 20 20 |nels co-|exist. |
|00005e90| 43 61 62 6c 65 20 54 56 | 20 63 68 61 6e 6e 65 6c |Cable TV| channel|
|00005ea0| 73 0d 3e 61 72 65 20 36 | 4d 68 7a 20 77 69 64 65 |s.>are 6|Mhz wide|
|00005eb0| 2e 20 20 57 65 20 68 61 | 76 65 20 41 70 70 6c 69 |. We ha|ve Appli|
|00005ec0| 54 65 6b 73 20 77 68 69 | 63 68 20 68 61 76 65 20 |Teks whi|ch have |
|00005ed0| 73 65 6e 64 20 61 6e 64 | 20 72 65 63 65 69 76 65 |send and| receive|
|00005ee0| 20 63 68 61 6e 6e 65 6c | 73 2c 0d 3e 65 61 63 68 | channel|s,.>each|
|00005ef0| 20 6f 66 20 77 68 69 63 | 68 20 69 73 20 36 4d 68 | of whic|h is 6Mh|
|00005f00| 7a 20 77 69 64 65 2e 20 | 20 57 65 20 61 6c 73 6f |z wide. | We also|
|00005f10| 20 68 61 76 65 20 43 68 | 69 70 63 6f 6d 73 20 77 | have Ch|ipcoms w|
|00005f20| 68 69 63 68 20 75 73 65 | 20 31 32 4d 68 7a 20 63 |hich use| 12Mhz c|
|00005f30| 68 61 6e 6e 65 6c 73 0d | 3e 74 68 61 74 20 73 6f |hannels.|>that so|
|00005f40| 6d 65 68 6f 77 20 6d 61 | 6e 61 67 65 20 74 6f 20 |mehow ma|nage to |
|00005f50| 73 65 6e 64 20 61 6e 64 | 20 72 65 63 65 69 76 65 |send and| receive|
|00005f60| 2e 20 20 53 6f 20 69 74 | 20 61 70 70 65 61 72 73 |. So it| appears|
|00005f70| 20 74 68 61 74 20 69 66 | 20 79 6f 75 20 77 69 73 | that if| you wis|
|00005f80| 68 20 74 6f 0d 3e 64 6f | 20 66 75 6c 6c 20 65 74 |h to.>do| full et|
|00005f90| 68 65 72 6e 65 74 20 6f | 6e 20 63 61 62 6c 65 2c |hernet o|n cable,|
|00005fa0| 20 79 6f 75 20 6e 65 65 | 64 20 74 6f 20 73 65 74 | you nee|d to set|
|00005fb0| 20 61 73 69 64 65 20 32 | 20 63 61 62 6c 65 20 63 | aside 2| cable c|
|00005fc0| 68 61 6e 6e 65 6c 73 20 | 74 6f 20 64 6f 20 69 74 |hannels |to do it|
|00005fd0| 2e 0d 3e 20 49 20 61 6d | 20 6e 6f 20 6e 65 74 77 |..> I am| no netw|
|00005fe0| 6f 72 6b 69 6e 67 20 65 | 78 70 65 72 74 2c 20 62 |orking e|xpert, b|
|00005ff0| 75 74 20 74 68 69 73 20 | 69 73 20 6d 79 20 75 6e |ut this |is my un|
|00006000| 64 65 72 73 74 61 6e 64 | 69 6e 67 20 6f 66 20 74 |derstand|ing of t|
|00006010| 68 65 20 73 69 74 75 61 | 74 69 6f 6e 0d 3e 68 65 |he situa|tion.>he|
|00006020| 72 65 2e 0d 0d 57 65 20 | 68 61 64 20 61 20 73 69 |re...We |had a si|
|00006030| 6d 69 6c 61 72 20 73 79 | 73 74 65 6d 20 62 61 63 |milar sy|stem bac|
|00006040| 6b 20 61 74 20 74 68 65 | 20 43 6f 6c 6c 65 67 65 |k at the| College|
|00006050| 20 6f 66 20 57 6f 6f 73 | 74 65 72 2e 2e 2e 20 74 | of Woos|ter... t|
|00006060| 68 65 72 65 20 77 61 73 | 20 61 0d 63 61 62 6c 65 |here was| a.cable|
|00006070| 20 54 56 20 70 6c 61 6e | 74 20 63 61 6d 70 75 73 | TV plan|t campus|
|00006080| 2d 77 69 64 65 2c 20 61 | 6e 64 20 43 68 69 70 43 |-wide, a|nd ChipC|
|00006090| 6f 6d 20 62 6f 78 65 73 | 20 77 68 69 63 68 20 70 |om boxes| which p|
|000060a0| 61 73 73 65 64 20 45 74 | 68 65 72 6e 65 74 0d 6f |assed Et|hernet.o|
|000060b0| 76 65 72 20 61 20 63 6f | 75 70 6c 65 20 6f 66 20 |ver a co|uple of |
|000060c0| 63 68 61 6e 6e 65 6c 73 | 20 6f 66 20 74 68 65 20 |channels| of the |
|000060d0| 63 61 62 6c 65 20 54 56 | 20 70 6c 61 6e 74 2e 20 |cable TV| plant. |
|000060e0| 49 74 20 63 61 6e 20 62 | 65 20 64 6f 6e 65 20 77 |It can b|e done w|
|000060f0| 69 74 68 6f 75 74 0d 74 | 6f 6f 20 6d 75 63 68 20 |ithout.t|oo much |
|00006100| 74 72 61 75 6d 61 2c 20 | 61 6c 74 68 6f 75 67 68 |trauma, |although|
|00006110| 20 61 73 20 49 20 72 65 | 63 61 6c 6c 20 74 68 65 | as I re|call the|
|00006120| 20 62 6f 78 65 73 20 77 | 65 72 65 20 71 75 69 74 | boxes w|ere quit|
|00006130| 65 20 65 78 70 65 6e 73 | 69 76 65 2e 0d 49 20 64 |e expens|ive..I d|
|00006140| 6f 6e 27 74 20 6b 6e 6f | 77 20 77 68 61 74 20 74 |on't kno|w what t|
|00006150| 68 65 20 70 65 72 66 6f | 72 6d 61 6e 63 65 20 6f |he perfo|rmance o|
|00006160| 66 20 74 68 65 20 43 68 | 69 70 43 6f 6d 73 20 77 |f the Ch|ipComs w|
|00006170| 65 72 65 20 28 74 68 65 | 79 20 77 65 72 65 20 63 |ere (the|y were c|
|00006180| 61 6c 6c 65 64 0d 45 74 | 68 65 72 4d 6f 64 65 6d |alled.Et|herModem|
|00006190| 73 2c 20 49 20 62 65 6c | 69 65 76 65 29 20 62 75 |s, I bel|ieve) bu|
|000061a0| 74 20 74 68 65 72 65 20 | 64 69 64 6e 27 74 20 73 |t there |didn't s|
|000061b0| 65 65 6d 20 74 6f 20 62 | 65 20 61 6e 79 20 6e 6f |eem to b|e any no|
|000061c0| 74 69 63 65 61 62 6c 65 | 20 62 6f 74 74 6c 65 6e |ticeable| bottlen|
|000061d0| 65 63 6b 0d 77 68 65 6e | 20 67 6f 69 6e 67 20 66 |eck.when| going f|
|000061e0| 72 6f 6d 20 61 6e 20 45 | 74 68 65 72 6e 65 74 20 |rom an E|thernet |
|000061f0| 6f 76 65 72 20 74 68 65 | 20 63 61 62 6c 65 20 70 |over the| cable p|
|00006200| 6c 61 6e 74 20 61 6e 64 | 20 62 61 63 6b 20 74 6f |lant and| back to|
|00006210| 20 61 6e 6f 74 68 65 72 | 20 45 74 68 65 72 6e 65 | another| Etherne|
|00006220| 74 2e 0d 0d 0d 2d 20 2d | 2d 20 0d 22 2e 2e 2e 72 |t....- -|- ."...r|
|00006230| 65 6d 6f 76 65 20 70 72 | 6f 74 65 63 74 69 76 65 |emove pr|otective|
|00006240| 20 63 61 70 2e 20 48 6f | 6c 64 20 61 74 6f 6d 69 | cap. Ho|ld atomi|
|00006250| 7a 65 72 20 77 69 74 68 | 20 74 68 75 6d 62 20 61 |zer with| thumb a|
|00006260| 74 20 62 61 73 65 20 61 | 6e 64 20 6e 6f 7a 7a 6c |t base a|nd nozzl|
|00006270| 65 20 0d 62 65 74 77 65 | 65 6e 20 66 69 72 73 74 |e .betwe|en first|
|00006280| 20 61 6e 64 20 73 65 63 | 6f 6e 64 20 66 69 6e 67 | and sec|ond fing|
|00006290| 65 72 73 2e 20 57 69 74 | 68 6f 75 74 20 74 69 6c |ers. Wit|hout til|
|000062a0| 74 69 6e 67 20 68 65 61 | 64 2c 20 69 6e 73 65 72 |ting hea|d, inser|
|000062b0| 74 20 6e 6f 7a 7a 6c 65 | 20 69 6e 74 6f 20 0d 6e |t nozzle| into .n|
|000062c0| 6f 73 74 72 69 6c 2e 20 | 46 75 6c 6c 79 20 64 65 |ostril. |Fully de|
|000062d0| 70 72 65 73 73 20 72 69 | 6d 20 77 69 74 68 20 61 |press ri|m with a|
|000062e0| 20 66 69 72 6d 2c 20 65 | 76 65 6e 20 73 74 72 6f | firm, e|ven stro|
|000062f0| 6b 65 20 61 6e 64 20 73 | 6e 69 66 66 20 64 65 65 |ke and s|niff dee|
|00006300| 70 6c 79 2e 22 0d 2d 20 | 2d 61 64 76 69 63 65 20 |ply.".- |-advice |
|00006310| 66 6f 72 20 70 72 65 73 | 69 64 65 6e 74 69 61 6c |for pres|idential|
|00006320| 20 63 61 6e 64 69 64 61 | 74 65 73 20 66 72 6f 6d | candida|tes from|
|00006330| 20 50 61 75 6c 20 50 6f | 74 74 73 20 2d 20 70 6f | Paul Po|tts - po|
|00006340| 74 74 73 40 69 74 6c 2e | 69 74 64 2e 75 6d 69 63 |tts@itl.|itd.umic|
|00006350| 68 2e 65 64 75 0d 0d 2b | 2b 2b 2b 2b 2b 2b 2b 2b |h.edu..+|++++++++|
|00006360| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|00006370| 2b 2b 0d 0d 46 72 6f 6d | 3a 20 6c 65 64 65 72 6d |++..From|: lederm|
|00006380| 61 6e 40 74 61 6e 65 79 | 2e 75 73 63 67 68 71 2e |an@taney|.uscghq.|
|00006390| 75 73 63 67 2e 6d 69 6c | 0d 44 61 74 65 3a 20 31 |uscg.mil|.Date: 1|
|000063a0| 38 20 53 65 70 20 39 32 | 20 31 34 3a 31 39 3a 30 |8 Sep 92| 14:19:0|
|000063b0| 31 20 47 4d 54 0d 4f 72 | 67 61 6e 69 7a 61 74 69 |1 GMT.Or|ganizati|
|000063c0| 6f 6e 3a 20 55 6e 69 74 | 65 64 20 53 74 61 74 65 |on: Unit|ed State|
|000063d0| 73 20 43 6f 61 73 74 20 | 47 75 61 72 64 0d 0d 49 |s Coast |Guard..I|
|000063e0| 6e 20 61 72 74 69 63 6c | 65 20 3c 6d 78 6d 6f 72 |n articl|e <mxmor|
|000063f0| 61 2d 31 37 30 39 39 32 | 31 30 35 31 33 30 40 63 |a-170992|105130@c|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.